This commit is contained in:
Hugh Rundle 2021-12-06 17:02:47 +11:00
parent 6d894d71ec
commit c3f24316a0
No known key found for this signature in database
GPG Key ID: CD23D6039184286B
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ class WebFingerError(Exception):
pass
def get_user_from_username(viewer, username):
"""helper function to resolve a localname or a username to a user"""
if viewer.is_authenticated and viewer.localname == username: