Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -103,6 +103,7 @@ class _images extends \IPS\Content\Api\ItemController
|
||||
* @apiparam int hidden 0 = unhidden; 1 = hidden, pending moderator approval; -1 = hidden (as if hidden by a moderator)
|
||||
* @apiparam int pinned 1/0 indicating if the image should be locked
|
||||
* @apiparam int featured 1/0 indicating if the image should be featured
|
||||
* @apiparam bool anonymous If 1, the item will be posted anonymously.
|
||||
* @throws 1G316/2 NO_CATEGORY_OR_ALBUM The category or album does not exist
|
||||
* @throws 1G316/3 NO_AUTHOR The author ID does not exist
|
||||
* @throws 1G316/4 NO_CAPTION No caption was supplied
|
||||
@@ -167,7 +168,14 @@ class _images extends \IPS\Content\Api\ItemController
|
||||
}
|
||||
else
|
||||
{
|
||||
$author = new \IPS\Member;
|
||||
if ( \IPS\Request::i()->author === 0 )
|
||||
{
|
||||
$author = new \IPS\Member;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new \IPS\Api\Exception( 'NO_AUTHOR', '1G316/3', 400 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,7 +257,7 @@ class _images extends \IPS\Content\Api\ItemController
|
||||
* @apiparam int hidden 0 = unhidden; 1 = hidden, pending moderator approval; -1 = hidden (as if hidden by a moderator)
|
||||
* @apiparam int pinned 1/0 indicating if the image should be locked
|
||||
* @apiparam int featured 1/0 indicating if the image should be featured
|
||||
* @param int $id ID Number
|
||||
* @apiparam bool anonymous If 1, the item will be posted anonymously.
|
||||
* @throws 2G316/7 INVALID_ID The image ID is invalid or the authorized user does not have permission to view it
|
||||
* @throws 1G316/8 NO_CATEGORY_OR_ALBUM The category or album does not exist or the authorized user does not have permission to post in it
|
||||
* @throws 1G316/9 NO_AUTHOR The author ID does not exist
|
||||
|
||||
Reference in new issue
Block a user