forked from mirror/pixelfed
Update LikePipeline
Do not send notifications to self
This commit is contained in:
parent
716ce6a588
commit
0f8fe5d3d2
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ class LikePipeline implements ShouldQueue
|
|||
$status = $this->like->status;
|
||||
$actor = $this->like->actor;
|
||||
|
||||
if($actor->id === $status->profile_id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
$notification = new Notification;
|
||||
|
|
Loading…
Reference in a new issue