瀏覽代碼

Update NotificationTransformer, fixes #2389

Daniel Supernault 4 年之前
父節點
當前提交
c4506ebd71
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
 		}
 	}