1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 22:38:27 +09:00

Use username as display name for suspended users or users with blank display names (#25276)

This commit is contained in:
Claire 2023-07-21 13:20:53 +02:00 committed by GitHub
parent 59478a1b46
commit 14fad60384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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