DEV: Allow tag to be passed in payload to PushNotificationPusher (#14810)

DEV: Allow tag to be passed in payload to PushNotificationPusher (#14810)

diff --git a/app/services/push_notification_pusher.rb b/app/services/push_notification_pusher.rb
index 3e0e4dc..85ff518 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

GitHub sha: d9f02b635d905bf78034c51b9ae8105c61c916a7

This commit appears in #14810 which was approved by featheredtoast. It was merged by markvanlan.