This commit is contained in:
Claire 2025-05-06 15:05:45 +00:00 committed by GitHub
commit e2195466ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -199,7 +199,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
include RoutingHelper
attributes :type, :media_type, :url, :name, :blurhash
attributes :type, :media_type, :url, :summary, :blurhash
attribute :focal_point, if: :focal_point?
attribute :width, if: :width?
attribute :height, if: :height?
@ -210,7 +210,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
'Document'
end
def name
def summary
object.description
end