diff --git a/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php b/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php index 690d4f320..1f7bdf273 100644 --- a/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php @@ -37,10 +37,10 @@ class NotificationTransformer extends Fractal\TransformerAbstract if($status) { return $this->item($status, new StatusTransformer()); } else { - return $this->collection([], new StatusTransformer()); + return; } } else { - return $this->collection([], new StatusTransformer()); + return; } }