Skip to content

Commit

Permalink
Don't return None for this
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Feb 16, 2025
1 parent 5a426cd commit 4b117dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions revolt_bridge_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,7 @@ def get_id(self, obj):
return obj.id

def display_name(self, user, message=None):
if message:
if not message.author.id == user.id:
# mismatch
return None
if message and message.author.id == user.id:
return message.author.masquerade_name or user.display_name or user.name
return user.display_name or user.name

Expand Down

0 comments on commit 4b117dd

Please sign in to comment.