From 29aa0f7feaedd6b2f379555d3a17426a55977aec Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 14 Nov 2025 15:14:26 -0500 Subject: [PATCH] Make sure notifications jobs don't need Current.account set --- app/models/notification_pusher.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/notification_pusher.rb b/app/models/notification_pusher.rb index debfc225b..953326cfe 100644 --- a/app/models/notification_pusher.rb +++ b/app/models/notification_pusher.rb @@ -88,7 +88,7 @@ class NotificationPusher { title: "New notification", body: "You have a new notification", - path: "#{Current.account.slug}#{notifications_path}" + path: "#{notification.account.slug}#{notifications_path}" } end @@ -110,10 +110,10 @@ class NotificationPusher end def card_path(card) - "#{Current.account.slug}#{Rails.application.routes.url_helpers.card_path(card)}" + "#{notification.account.slug}#{Rails.application.routes.url_helpers.card_path(card)}" end def card_path_with_comment_anchor(comment) - "#{Current.account.slug}#{Rails.application.routes.url_helpers.card_path(comment.card, anchor: ActionView::RecordIdentifier.dom_id(comment))}" + "#{notification.account.slug}#{Rails.application.routes.url_helpers.card_path(comment.card, anchor: ActionView::RecordIdentifier.dom_id(comment))}" end end