1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Update LikePipeline

Do not send notifications to self
This commit is contained in:
Daniel Supernault 2018-05-29 19:47:20 -06:00
parent 716ce6a588
commit 0f8fe5d3d2

View file

@ -37,6 +37,10 @@ class LikePipeline implements ShouldQueue
$status = $this->like->status; $status = $this->like->status;
$actor = $this->like->actor; $actor = $this->like->actor;
if($actor->id === $status->profile_id) {
return true;
}
try { try {
$notification = new Notification; $notification = new Notification;