Fix performance regression from #6836
@ -57,7 +57,7 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
end
def virtual_tags
object.mentions.order(:id) + object.tags + object.emojis
object.mentions.to_a.sort_by(&:id) + object.tags + object.emojis
def atom_uri
@ -87,7 +87,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
def ordered_mentions
object.mentions.order(:id)
object.mentions.to_a.sort_by(&:id)
class ApplicationSerializer < ActiveModel::Serializer