From d9f02b635d905bf78034c51b9ae8105c61c916a7 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Wed, 3 Nov 2021 14:18:48 -0500 Subject: [PATCH] DEV: Allow tag to be passed in payload to PushNotificationPusher (#14810) --- app/services/push_notification_pusher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/push_notification_pusher.rb b/app/services/push_notification_pusher.rb index 3e0e4dc08a3..85ff518a396 100644 --- a/app/services/push_notification_pusher.rb +++ b/app/services/push_notification_pusher.rb @@ -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