Compare commits

...

2 Commits

Author SHA1 Message Date
Claire
8aa37fcb51
Merge 2f9c50f562 into c442589593 2025-07-10 08:06:39 +00:00
Claire
2f9c50f562 Change media attachments to use summary instead of name for attachment description 2024-10-16 10:36:23 +02:00

View File

@ -199,7 +199,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?
@ -210,7 +210,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
'Document' 'Document'
end end
def name def summary
object.description object.description
end end