1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

Update NotificationTransformer, add missing types

This commit is contained in:
Daniel Supernault 2020-12-13 16:03:44 -07:00
parent 6d030cdf81
commit 3a428366fb
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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];
}