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:
parent
45ce2bf4fc
commit
9854eab7d6
3 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def name
|
||||
"##{object.name}"
|
||||
object.formatted_name
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ class ActivityPub::HashtagSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def name
|
||||
"##{object.display_name}"
|
||||
object.formatted_name
|
||||
end
|
||||
|
||||
def href
|
||||
|
|
|
@ -269,7 +269,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def name
|
||||
"##{object.name}"
|
||||
object.formatted_name
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue