1
0
Fork 0

Update CommentPipeline, do not send notifications for self comments

This commit is contained in:
Daniel Supernault 2018-06-05 21:01:59 -06:00
parent e45ab15352
commit f64cf90dda
1 changed files with 4 additions and 0 deletions

View File

@ -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;