Skip to content

Commit 6be68f0

Browse files
authored
Fix saving vote for post/discussion created by deleted user (#145)
1 parent d533a85 commit 6be68f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/SaveVotesToDatabase.php

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function handle(Saving $event)
9696
}
9797
}
9898

99-
public function vote(Post $post, bool $isDownvoted, bool $isUpvoted, User $actor, User $user)
99+
public function vote(Post $post, bool $isDownvoted, bool $isUpvoted, User $actor, ?User $user)
100100
{
101101
$vote = Vote::build($post, $actor);
102102

0 commit comments

Comments
 (0)