mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Use username as display name for suspended users or users with blank display names (#25276)
This commit is contained in:
parent
59478a1b46
commit
14fad60384
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def name
|
||||
object.suspended? ? '' : object.display_name
|
||||
object.suspended? ? object.username : (object.display_name.presence || object.username)
|
||||
end
|
||||
|
||||
def summary
|
||||
|
|
Loading…
Reference in a new issue