diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 66e75c8fa..563cca7fe 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -308,7 +308,7 @@ class Helpers { $res = self::fetchFromUrl($url); - if(!$res || empty($res) || isset($res['error']) || !isset($res['@context']) ) { + if(!$res || empty($res) || isset($res['error']) || !isset($res['@context']) || !isset($res['published']) ) { return; } diff --git a/app/Util/Sentiment/Bouncer.php b/app/Util/Sentiment/Bouncer.php index aa59d1404..6aa7a3d8f 100644 --- a/app/Util/Sentiment/Bouncer.php +++ b/app/Util/Sentiment/Bouncer.php @@ -149,7 +149,6 @@ class Bouncer { $notification->item_id = $status->id; $notification->item_type = "App\Status"; $notification->save(); - NotificationService::add($notification->profile_id, $notification->id); StatusService::del($status->id);