From a2d2d7e1ec27060e084ccf120ccbbfa02f40ada0 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Mon, 29 Apr 2024 15:20:58 -0700 Subject: [PATCH] soyjak upstream api changes --- inc/api.php | 67 ++++++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/inc/api.php b/inc/api.php index 0dd479ac..0bb78c1b 100644 --- a/inc/api.php +++ b/inc/api.php @@ -17,38 +17,41 @@ class Api { $this->config = $config; $this->postFields = array( - 'id' => 'no', - 'thread' => 'resto', - 'subject' => 'sub', - 'body' => 'com', - 'email' => 'email', - 'name' => 'name', - 'trip' => 'trip', - 'capcode' => 'capcode', - 'time' => 'time', - 'omitted' => 'omitted_posts', - 'omitted_images' => 'omitted_images', - 'replies' => 'replies', - 'images' => 'images', - 'sticky' => 'sticky', - 'locked' => 'locked', - 'cycle' => 'cyclical', - 'bump' => 'last_modified', - 'embed' => 'embed', - ); - - $this->threadsPageFields = array( - 'id' => 'no', - 'bump' => 'last_modified' - ); - - $this->fileFields = array( - 'thumbheight' => 'tn_h', - 'thumbwidth' => 'tn_w', - 'height' => 'h', - 'width' => 'w', - 'size' => 'fsize', - ); + 'id' => 'no', + 'thread' => 'resto', + 'subject' => 'sub', + 'body' => 'com', + 'body_nomarkup' => '___body_nomarkup', + 'email' => 'email', + 'name' => 'name', + 'trip' => 'trip', + 'capcode' => 'capcode', + 'time' => 'time', + 'omitted' => 'omitted_posts', + 'omitted_images' => 'omitted_images', + 'replies' => 'replies', + 'images' => 'images', + 'sticky' => 'sticky', + 'locked' => 'locked', + 'cycle' => 'cyclical', + 'bump' => 'last_modified', + 'embed' => 'embed', + ); + + $this->threadsPageFields = array( + 'id' => 'no', + 'bump' => 'last_modified' + ); + + $this->fileFields = array( + 'thumbheight' => 'tn_h', + 'thumbwidth' => 'tn_w', + 'height' => 'h', + 'width' => 'w', + 'size' => 'fsize', + 'thumb' => 'thumb', + 'filename' => 'filename', + ); if (isset($config['api']['extra_fields']) && gettype($config['api']['extra_fields']) == 'array'){ $this->postFields = array_merge($this->postFields, $config['api']['extra_fields']);