mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 14:40:46 +00:00
Update CommentPipeline, do not send notifications for self comments
This commit is contained in:
parent
e45ab15352
commit
f64cf90dda
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ class CommentPipeline implements ShouldQueue
|
|||
$target = $status->profile;
|
||||
$actor = $comment->profile;
|
||||
|
||||
if($actor->id === $target->id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
$notification = new Notification;
|
||||
|
|
Loading…
Reference in a new issue