Sfoglia il codice sorgente

Update NotificationTransformer, fixes #2389

Daniel Supernault 4 anni fa
parent
commit
c4506ebd71

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