mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Add modifiers for plugins to customize push notification translation arguments (#25889)
This commit is contained in:

committed by
GitHub

parent
eea7af09fd
commit
b426f85a81
@ -60,6 +60,11 @@ module Jobs
|
||||
|
||||
translation_args = { username: @creator.username }
|
||||
translation_args[:channel] = @chat_channel.title(user) unless @is_direct_message_channel
|
||||
translation_args =
|
||||
DiscoursePluginRegistry.apply_modifier(
|
||||
:chat_notification_translation_args,
|
||||
translation_args,
|
||||
)
|
||||
|
||||
payload = {
|
||||
username: @creator.username,
|
||||
|
Reference in New Issue
Block a user