Update LikePipeline

Do not send notifications to self
pull/52/head
Daniel Supernault 2018-05-29 19:47:20 -06:00
rodzic 716ce6a588
commit 0f8fe5d3d2
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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