mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
soyjak upstream api changes
This commit is contained in:
parent
6cd11d546f
commit
a2d2d7e1ec
67
inc/api.php
67
inc/api.php
@ -17,38 +17,41 @@ class Api {
|
|||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
$this->postFields = array(
|
$this->postFields = array(
|
||||||
'id' => 'no',
|
'id' => 'no',
|
||||||
'thread' => 'resto',
|
'thread' => 'resto',
|
||||||
'subject' => 'sub',
|
'subject' => 'sub',
|
||||||
'body' => 'com',
|
'body' => 'com',
|
||||||
'email' => 'email',
|
'body_nomarkup' => '___body_nomarkup',
|
||||||
'name' => 'name',
|
'email' => 'email',
|
||||||
'trip' => 'trip',
|
'name' => 'name',
|
||||||
'capcode' => 'capcode',
|
'trip' => 'trip',
|
||||||
'time' => 'time',
|
'capcode' => 'capcode',
|
||||||
'omitted' => 'omitted_posts',
|
'time' => 'time',
|
||||||
'omitted_images' => 'omitted_images',
|
'omitted' => 'omitted_posts',
|
||||||
'replies' => 'replies',
|
'omitted_images' => 'omitted_images',
|
||||||
'images' => 'images',
|
'replies' => 'replies',
|
||||||
'sticky' => 'sticky',
|
'images' => 'images',
|
||||||
'locked' => 'locked',
|
'sticky' => 'sticky',
|
||||||
'cycle' => 'cyclical',
|
'locked' => 'locked',
|
||||||
'bump' => 'last_modified',
|
'cycle' => 'cyclical',
|
||||||
'embed' => 'embed',
|
'bump' => 'last_modified',
|
||||||
);
|
'embed' => 'embed',
|
||||||
|
);
|
||||||
$this->threadsPageFields = array(
|
|
||||||
'id' => 'no',
|
$this->threadsPageFields = array(
|
||||||
'bump' => 'last_modified'
|
'id' => 'no',
|
||||||
);
|
'bump' => 'last_modified'
|
||||||
|
);
|
||||||
$this->fileFields = array(
|
|
||||||
'thumbheight' => 'tn_h',
|
$this->fileFields = array(
|
||||||
'thumbwidth' => 'tn_w',
|
'thumbheight' => 'tn_h',
|
||||||
'height' => 'h',
|
'thumbwidth' => 'tn_w',
|
||||||
'width' => 'w',
|
'height' => 'h',
|
||||||
'size' => 'fsize',
|
'width' => 'w',
|
||||||
);
|
'size' => 'fsize',
|
||||||
|
'thumb' => 'thumb',
|
||||||
|
'filename' => 'filename',
|
||||||
|
);
|
||||||
|
|
||||||
if (isset($config['api']['extra_fields']) && gettype($config['api']['extra_fields']) == 'array'){
|
if (isset($config['api']['extra_fields']) && gettype($config['api']['extra_fields']) == 'array'){
|
||||||
$this->postFields = array_merge($this->postFields, $config['api']['extra_fields']);
|
$this->postFields = array_merge($this->postFields, $config['api']['extra_fields']);
|
||||||
|
Loading…
Reference in New Issue
Block a user