Skip to content

Commit

Permalink
Fix MentionJSONPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomilov committed Jan 29, 2025
1 parent 9fd2ebe commit d089ea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions h/presenters/mention_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def __init__(self, mention: Mention):
def asdict(self) -> dict[str, Any]:
return {
"userid": self._mention.annotation.userid,
"username": self._mention.user.username,
"display_name": self._mention.user.display_name,
"link": self._mention.user.uri,
}

0 comments on commit d089ea0

Please sign in to comment.