From 3a428366fb3fc0cefa9e26ad26ece9359e0cc761 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 13 Dec 2020 16:03:44 -0700 Subject: [PATCH] Update NotificationTransformer, add missing types --- app/Transformer/Api/Mastodon/v1/NotificationTransformer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php b/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php index 1f7bdf273..364659574 100644 --- a/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php +++ b/app/Transformer/Api/Mastodon/v1/NotificationTransformer.php @@ -47,12 +47,14 @@ class NotificationTransformer extends Fractal\TransformerAbstract public function replaceTypeVerb($verb) { $verbs = [ + 'dm' => 'direct', 'follow' => 'follow', 'mention' => 'mention', 'share' => 'reblog', 'like' => 'favourite', 'comment' => 'mention', - 'admin.user.modlog.comment' => 'modlog' + 'admin.user.modlog.comment' => 'modlog', + 'tagged' => 'tagged' ]; return $verbs[$verb]; }