diff --git a/src/PostAttributes.php b/src/PostAttributes.php index 3396e3d..320a788 100644 --- a/src/PostAttributes.php +++ b/src/PostAttributes.php @@ -85,7 +85,7 @@ protected function getActorReactionForPost(User $actor, Post $post, ServerReques } return PostAnonymousReaction::where('post_id', $post->id) - ->where('guest_id', $request->getAttribute('session')->getId()) + ->where('guest_id', $session->getId()) ->value('reaction_id'); }