|
|
|
@ -4,7 +4,7 @@ module Notification::Groups
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
|
|
|
|
# `set_group_key!` needs to be updated if this list changes
|
|
|
|
# `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
|
|
|
|
MAXIMUM_GROUP_SPAN_HOURS = 12
|
|
|
|
|
|
|
|
|
|
|
|
included do
|
|
|
|
included do
|
|
|
|
@ -17,7 +17,7 @@ module Notification::Groups
|
|
|
|
type_prefix = case type
|
|
|
|
type_prefix = case type
|
|
|
|
when :favourite, :reblog
|
|
|
|
when :favourite, :reblog
|
|
|
|
[type, target_status&.id].join('-')
|
|
|
|
[type, target_status&.id].join('-')
|
|
|
|
when :follow
|
|
|
|
when :follow, :'admin.sign_up'
|
|
|
|
type
|
|
|
|
type
|
|
|
|
else
|
|
|
|
else
|
|
|
|
raise NotImplementedError
|
|
|
|
raise NotImplementedError
|
|
|
|
|