Explorar o código

Update NotificationTransformer, fixes #2389

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
c4506ebd71

+ 2 - 2
app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

@@ -37,10 +37,10 @@ class NotificationTransformer extends Fractal\TransformerAbstract
 			if($status) {
 			if($status) {
 				return $this->item($status, new StatusTransformer());
 				return $this->item($status, new StatusTransformer());
 			} else {
 			} else {
-				return $this->collection([], new StatusTransformer());
+				return;
 			}
 			}
 		} else {
 		} else {
-			return $this->collection([], new StatusTransformer());
+			return;
 		}
 		}
 	}
 	}