This commit is contained in:
Celestora 2021-10-13 23:26:27 +03:00
parent 28e7eaa9e3
commit 1a0454c01f

View file

@ -81,7 +81,7 @@ final class CommentPresenter extends OpenVKPresenter
$comment->attach($photo);
if(!is_null($video))
$post->attach($video);
$comment->attach($video);
if($entity->getOwner()->getId() !== $this->user->identity->getId())
if(($owner = $entity->getOwner()) instanceof User)