diff --git a/app/Services/NotificationService.php b/app/Services/NotificationService.php index 264f9df31..139b13a69 100644 --- a/app/Services/NotificationService.php +++ b/app/Services/NotificationService.php @@ -107,7 +107,9 @@ class NotificationService { foreach($ids as $id) { $n = self::rewriteMastodonTypes(self::getNotification($id)); if($n != null && in_array($n['type'], self::MASTODON_TYPES)) { - $n['account'] = AccountService::getMastodon($n['account']['id']); + if(isset($n['account'])) { + $n['account'] = AccountService::getMastodon($n['account']['id']); + } if(isset($n['relationship'])) { unset($n['relationship']); @@ -135,7 +137,9 @@ class NotificationService { foreach($ids as $id) { $n = self::rewriteMastodonTypes(self::getNotification($id)); if($n != null && in_array($n['type'], self::MASTODON_TYPES)) { - $n['account'] = AccountService::getMastodon($n['account']['id']); + if(isset($n['account'])) { + $n['account'] = AccountService::getMastodon($n['account']['id']); + } if(isset($n['relationship'])) { unset($n['relationship']);