From f64cf90dda40df07e6d057cc419605aca5b3f0fa Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 5 Jun 2018 21:01:59 -0600 Subject: [PATCH] Update CommentPipeline, do not send notifications for self comments --- app/Jobs/CommentPipeline/CommentPipeline.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Jobs/CommentPipeline/CommentPipeline.php b/app/Jobs/CommentPipeline/CommentPipeline.php index fb0de7ebb..e220709d1 100644 --- a/app/Jobs/CommentPipeline/CommentPipeline.php +++ b/app/Jobs/CommentPipeline/CommentPipeline.php @@ -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;