Fix 500 on repost in vkapi (#893)

This commit is contained in:
lalka2018 2023-06-08 15:36:05 +03:00 committed by GitHub
parent 7962a4efd7
commit f898e973a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -486,7 +486,7 @@ final class Wall extends VKAPIRequestHandler
$nPost->attach($post);
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) [
"success" => 1, // 👍