Eugen Rochko
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
app/serializers/activitypub/note_serializer.rb
-
app/serializers/rest/status_serializer.rb
|
|
@ -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 |
|
|
|
end |
|
|
|
|
|
|
|
def atom_uri |
|
|
|
|
|
@ -87,7 +87,7 @@ class REST::StatusSerializer < ActiveModel::Serializer |
|
|
|
end |
|
|
|
|
|
|
|
def ordered_mentions |
|
|
|
object.mentions.order(:id) |
|
|
|
object.mentions.to_a.sort_by(&:id) |
|
|
|
end |
|
|
|
|
|
|
|
class ApplicationSerializer < ActiveModel::Serializer |
|
|
|