|
|
@ -1,8 +1,7 @@ |
|
|
|
# frozen_string_literal: true |
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
|
|
|
|
class ActivityPub::NoteSerializer < ActivityPub::Serializer |
|
|
|
class ActivityPub::NoteSerializer < ActivityPub::Serializer |
|
|
|
context_extensions :atom_uri, :conversation, :sensitive, |
|
|
|
context_extensions :atom_uri, :conversation, :sensitive |
|
|
|
:hashtag, :emoji, :focal_point, :blurhash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
attributes :id, :type, :summary, |
|
|
|
attributes :id, :type, :summary, |
|
|
|
:in_reply_to, :published, :url, |
|
|
|
:in_reply_to, :published, :url, |
|
|
@ -151,6 +150,8 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
class MediaAttachmentSerializer < ActivityPub::Serializer |
|
|
|
class MediaAttachmentSerializer < ActivityPub::Serializer |
|
|
|
|
|
|
|
context_extensions :blurhash, :focal_point |
|
|
|
|
|
|
|
|
|
|
|
include RoutingHelper |
|
|
|
include RoutingHelper |
|
|
|
|
|
|
|
|
|
|
|
attributes :type, :media_type, :url, :name, :blurhash |
|
|
|
attributes :type, :media_type, :url, :name, :blurhash |
|
|
@ -198,6 +199,8 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
class TagSerializer < ActivityPub::Serializer |
|
|
|
class TagSerializer < ActivityPub::Serializer |
|
|
|
|
|
|
|
context_extensions :hashtag |
|
|
|
|
|
|
|
|
|
|
|
include RoutingHelper |
|
|
|
include RoutingHelper |
|
|
|
|
|
|
|
|
|
|
|
attributes :type, :href, :name |
|
|
|
attributes :type, :href, :name |
|
|
|