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:
parent
6d030cdf81
commit
3a428366fb
1 changed files with 3 additions and 1 deletions
|
@ -47,12 +47,14 @@ class NotificationTransformer extends Fractal\TransformerAbstract
|
||||||
public function replaceTypeVerb($verb)
|
public function replaceTypeVerb($verb)
|
||||||
{
|
{
|
||||||
$verbs = [
|
$verbs = [
|
||||||
|
'dm' => 'direct',
|
||||||
'follow' => 'follow',
|
'follow' => 'follow',
|
||||||
'mention' => 'mention',
|
'mention' => 'mention',
|
||||||
'share' => 'reblog',
|
'share' => 'reblog',
|
||||||
'like' => 'favourite',
|
'like' => 'favourite',
|
||||||
'comment' => 'mention',
|
'comment' => 'mention',
|
||||||
'admin.user.modlog.comment' => 'modlog'
|
'admin.user.modlog.comment' => 'modlog',
|
||||||
|
'tagged' => 'tagged'
|
||||||
];
|
];
|
||||||
return $verbs[$verb];
|
return $verbs[$verb];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue