Fix 500 on repost in vkapi

This commit is contained in:
lalka2016 2023-06-08 15:17:45 +03:00
parent 7962a4efd7
commit 594077c1a9

View file

@ -486,7 +486,7 @@ final class Wall extends VKAPIRequestHandler
$nPost->attach($post); $nPost->attach($post);
if($post->getOwner(false)->getId() !== $this->user->getId() && !($post->getOwner() instanceof Club)) if($post->getOwner(false)->getId() !== $this->user->getId() && !($post->getOwner() instanceof Club))
(new RepostNotification($post->getOwner(false), $post, $this->user->identity))->emit(); (new RepostNotification($post->getOwner(false), $post, $this->user))->emit();
return (object) [ return (object) [
"success" => 1, // 👍 "success" => 1, // 👍