Use username as display name for suspended users or users with blank display names (#25276)
parent
59478a1b46
commit
14fad60384
|
@ -99,7 +99,7 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def name
|
def name
|
||||||
object.suspended? ? '' : object.display_name
|
object.suspended? ? object.username : (object.display_name.presence || object.username)
|
||||||
end
|
end
|
||||||
|
|
||||||
def summary
|
def summary
|
||||||
|
|
Reference in New Issue