A platform for community discussion. Free, open, simple.
DEV: Allow tag to be passed in payload to PushNotificationPusher (#14810)
Mark VanLandinghamd9f02b635d90
diff --git a/app/services/push_notification_pusher.rb b/app/services/push_notification_pusher.rbindex 3e0e4dc08a3..85ff518a396 100644--- a/app/services/push_notification_pusher.rb+++ b/app/services/push_notification_pusher.rb@@ -16,7 +16,7 @@ class PushNotificationPusherbody: 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