mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Allow tag to be passed in payload to PushNotificationPusher (#14810)
This commit is contained in:
parent
67265a5045
commit
d9f02b635d
@ -16,7 +16,7 @@ class PushNotificationPusher
|
||||
body: payload[:excerpt],
|
||||
badge: get_badge,
|
||||
icon: ActionController::Base.helpers.image_url("push-notifications/#{Notification.types[payload[:notification_type]]}.png"),
|
||||
tag: "#{Discourse.current_hostname}-#{payload[:topic_id]}",
|
||||
tag: payload[:tag] || "#{Discourse.current_hostname}-#{payload[:topic_id]}",
|
||||
base_url: Discourse.base_url,
|
||||
url: payload[:post_url],
|
||||
hide_when_active: true
|
||||
|
Loading…
Reference in New Issue
Block a user