Browse Source

Update NotificationTransformer, fixes #2389

Daniel Supernault 4 years ago
parent
commit
c4506ebd71
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

+ 2 - 2
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;
 		}
 	}