0
0
Fork 0

Serialize mentions in the order they are added (#6836)

Up until now, the order seemed to be in the *opposite* order,
which caused the WebUI to populate mentions in reversed order
when replying to toots local to one's instance.
This commit is contained in:
ThibG 2018-03-19 20:19:35 +01:00 committed by Eugen Rochko
parent 6b76a6212d
commit ff6b8a6443
3 changed files with 7 additions and 3 deletions

View file

@ -57,7 +57,7 @@ class ActivityPub::NoteSerializer < ActiveModel::Serializer
end
def virtual_tags
object.mentions + object.tags + object.emojis
object.mentions.order(:id) + object.tags + object.emojis
end
def atom_uri