Use username as display name for suspended users or users with blank display names (#25276)
parent
e1c5bed7b4
commit
4cf27100c0
|
@ -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 New Issue