mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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…
Add table
Reference in a new issue