Merge remote-tracking branch 'parent/main' into upstream-20240906
This commit is contained in:
commit
f18eabfe75
689 changed files with 4369 additions and 2434 deletions
|
@ -48,22 +48,19 @@ class REST::NotificationGroupSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def page_min_id
|
||||
range = instance_options[:group_metadata][object.group_key]
|
||||
range.present? ? range[:min_id].to_s : object.notification.id.to_s
|
||||
object.pagination_data[:min_id].to_s
|
||||
end
|
||||
|
||||
def page_max_id
|
||||
range = instance_options[:group_metadata][object.group_key]
|
||||
range.present? ? range[:max_id].to_s : object.notification.id.to_s
|
||||
object.most_recent_notification_id.to_s
|
||||
end
|
||||
|
||||
def latest_page_notification_at
|
||||
range = instance_options[:group_metadata][object.group_key]
|
||||
range.present? ? range[:latest_notification_at] : object.notification.created_at
|
||||
object.pagination_data[:latest_notification_at]
|
||||
end
|
||||
|
||||
def paginated?
|
||||
!instance_options[:group_metadata].nil?
|
||||
object.pagination_data.present?
|
||||
end
|
||||
|
||||
class NotificationEmojiReactionGroupSerializer < ActiveModel::Serializer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue