Skip to content

Commit

Permalink
Use username as display name for suspended users or users with blank …
Browse files Browse the repository at this point in the history
…display names (#25276)
  • Loading branch information
ClearlyClaire committed Jul 21, 2023
1 parent 59478a1 commit 14fad60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/activitypub/actor_serializer.rb
Expand Up @@ -99,7 +99,7 @@ def discoverable
end

def name
object.suspended? ? '' : object.display_name
object.suspended? ? object.username : (object.display_name.presence || object.username)
end

def summary
Expand Down

0 comments on commit 14fad60

Please sign in to comment.