mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Merge 2f9c50f562 into 002632c3bb
This commit is contained in:
commit
f91e3b9780
|
|
@ -253,7 +253,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
||||||
|
|
||||||
include RoutingHelper
|
include RoutingHelper
|
||||||
|
|
||||||
attributes :type, :media_type, :url, :name, :blurhash
|
attributes :type, :media_type, :url, :summary, :blurhash
|
||||||
attribute :focal_point, if: :focal_point?
|
attribute :focal_point, if: :focal_point?
|
||||||
attribute :width, if: :width?
|
attribute :width, if: :width?
|
||||||
attribute :height, if: :height?
|
attribute :height, if: :height?
|
||||||
|
|
@ -264,7 +264,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
||||||
'Document'
|
'Document'
|
||||||
end
|
end
|
||||||
|
|
||||||
def name
|
def summary
|
||||||
object.description
|
object.description
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user