mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 12:55:56 +01:00
Change media attachments to use summary
instead of name
for attachment description
This commit is contained in:
parent
f8ba2122f8
commit
2f9c50f562
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue