mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
VKAPI: Add original author info with extended=1
if reposted
This commit is contained in:
parent
2b9e316b80
commit
3c624a9c78
1 changed files with 14 additions and 0 deletions
|
@ -144,6 +144,13 @@ final class Wall extends VKAPIRequestHandler
|
||||||
"attachments" => $repostAttachments,
|
"attachments" => $repostAttachments,
|
||||||
"post_source" => $post_source,
|
"post_source" => $post_source,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if ($attachment->getVirtualId() > 0)
|
||||||
|
$profiles[] = $attachment->getVirtualId();
|
||||||
|
else
|
||||||
|
$groups[] = $attachment->getVirtualId();
|
||||||
|
if($post->isSigned())
|
||||||
|
$profiles[] = $attachment->getOwner()->getId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,6 +346,13 @@ final class Wall extends VKAPIRequestHandler
|
||||||
"attachments" => $repostAttachments,
|
"attachments" => $repostAttachments,
|
||||||
"post_source" => $post_source,
|
"post_source" => $post_source,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if ($attachment->getVirtualId() > 0)
|
||||||
|
$profiles[] = $attachment->getVirtualId();
|
||||||
|
else
|
||||||
|
$groups[] = $attachment->getVirtualId();
|
||||||
|
if($post->isSigned())
|
||||||
|
$profiles[] = $attachment->getOwner()->getId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue