[COMPONENT][Notification] Use _m() in reason

This commit is contained in:
2021-12-28 16:36:52 +00:00
parent 3e83387e98
commit 9cda64f275
5 changed files with 7 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ class DeleteNote extends NoteHandlerPlugin
$activity = $note->delete(actor: $actor, source: 'web');
// Undertaker successful
Event::handle('NewNotification', [$actor, $activity, [], "{$actor->getNickname()} deleted note {$activity->getObjectId()}"]);
Event::handle('NewNotification', [$actor, $activity, [], _m('{nickname} deleted note {note_id}.', ['nickname' => $actor->getNickname(), 'note_id' => $activity->getObjectId()])]);
return $activity;
}