[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

@@ -281,7 +281,7 @@ class Posting extends Component
}
DB::flush();
Event::handle('NewNotification', [$actor, $activity, ['object' => $mentioned], "{$actor->getNickname()} created note {$note->getUrl()}"]);
Event::handle('NewNotification', [$actor, $activity, ['object' => $mentioned], _m('{nickname} created a note {note_id}.', ['nickname' => $actor->getNickname(), 'note_id' => $activity->getObjectId()])]);
return $note;
}