|
|
|
@ -105,7 +105,7 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def virtual_tags
|
|
|
|
|
object.emojis
|
|
|
|
|
object.emojis + object.tags
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def virtual_attachments
|
|
|
|
@ -119,6 +119,24 @@ class ActivityPub::ActorSerializer < ActiveModel::Serializer
|
|
|
|
|
class CustomEmojiSerializer < ActivityPub::EmojiSerializer
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
class TagSerializer < ActiveModel::Serializer
|
|
|
|
|
include RoutingHelper
|
|
|
|
|
|
|
|
|
|
attributes :type, :href, :name
|
|
|
|
|
|
|
|
|
|
def type
|
|
|
|
|
'Hashtag'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def href
|
|
|
|
|
explore_hashtag_url(object)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def name
|
|
|
|
|
"##{object.name}"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
class Account::FieldSerializer < ActiveModel::Serializer
|
|
|
|
|
attributes :type, :name, :value
|
|
|
|
|
|
|
|
|
|