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],
|
body: payload[:excerpt],
|
||||||
badge: get_badge,
|
badge: get_badge,
|
||||||
icon: ActionController::Base.helpers.image_url("push-notifications/#{Notification.types[payload[:notification_type]]}.png"),
|
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,
|
base_url: Discourse.base_url,
|
||||||
url: payload[:post_url],
|
url: payload[:post_url],
|
||||||
hide_when_active: true
|
hide_when_active: true
|
||||||
|
|
Loading…
Reference in New Issue