From f898e973a272c0f2bdc44be2575dedf3b3e08b5c Mon Sep 17 00:00:00 2001 From: lalka2018 <99399973+lalka2016@users.noreply.github.com> Date: Thu, 8 Jun 2023 15:36:05 +0300 Subject: [PATCH] Fix 500 on repost in vkapi (#893) --- VKAPI/Handlers/Wall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index adddaccf..dcf63a26 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -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, // 👍