瀏覽代碼

Update NotificationTransformer, add modlog type

Daniel Supernault 5 年之前
父節點
當前提交
1a0c1afedf
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

+ 1 - 0
app/Transformer/Api/Mastodon/v1/NotificationTransformer.php

@@ -52,6 +52,7 @@ class NotificationTransformer extends Fractal\TransformerAbstract
 			'share' => 'reblog',
 			'like' => 'favourite',
 			'comment' => 'mention',
+			'admin.user.modlog.comment' => 'modlog'
 		];
 		return $verbs[$verb];
 	}