From ee65f77a7eeab74e65a2760b8c9c41f5df79d26e Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 28 Mar 2025 13:35:25 +0100 Subject: [PATCH] Add server-side support for grouping account sign-up notifications (#34298) --- app/models/concerns/notification/groups.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/concerns/notification/groups.rb b/app/models/concerns/notification/groups.rb index 914910e8f3..f902952c61 100644 --- a/app/models/concerns/notification/groups.rb +++ b/app/models/concerns/notification/groups.rb @@ -4,7 +4,7 @@ module Notification::Groups extend ActiveSupport::Concern # `set_group_key!` needs to be updated if this list changes - GROUPABLE_NOTIFICATION_TYPES = %i(favourite reblog follow).freeze + GROUPABLE_NOTIFICATION_TYPES = %i(favourite reblog follow admin.sign_up).freeze MAXIMUM_GROUP_SPAN_HOURS = 12 included do @@ -17,7 +17,7 @@ module Notification::Groups type_prefix = case type when :favourite, :reblog [type, target_status&.id].join('-') - when :follow + when :follow, :'admin.sign_up' type else raise NotImplementedError