Skip to content

Commit

Permalink
fix: session can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Dec 15, 2023
1 parent a210bd1 commit 5891aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PostAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 5891aef

Please sign in to comment.