1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Use Tag#formatted_name for activitypub serializers

This commit is contained in:
Emelia Smith 2024-07-27 17:10:53 +02:00
parent 45ce2bf4fc
commit 9854eab7d6
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -186,7 +186,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
end
def name
"##{object.name}"
object.formatted_name
end
end

View file

@ -12,7 +12,7 @@ class ActivityPub::HashtagSerializer < ActivityPub::Serializer
end
def name
"##{object.display_name}"
object.formatted_name
end
def href

View file

@ -269,7 +269,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
end
def name
"##{object.name}"
object.formatted_name
end
end