mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
VKAPI: Add ability to publish posts with signature of author
This commit is contained in:
parent
3d07339431
commit
85208a5c8e
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,7 @@ final class Wall extends VKAPIRequestHandler
|
|||
];
|
||||
}
|
||||
|
||||
function post(string $owner_id, string $message, int $from_group = 0): object
|
||||
function post(string $owner_id, string $message, int $from_group = 0, int $signed = 0): object
|
||||
{
|
||||
$this->requireUser();
|
||||
|
||||
|
@ -88,6 +88,8 @@ final class Wall extends VKAPIRequestHandler
|
|||
$flags = 0;
|
||||
if($from_group == 1)
|
||||
$flags |= 0b10000000;
|
||||
if($signed == 1)
|
||||
$flags |= 0b01000000;
|
||||
|
||||
try {
|
||||
$post = new Post;
|
||||
|
|
Loading…
Reference in a new issue