mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-10 00:02:44 +00:00
lint
This commit is contained in:
parent
6d894d71ec
commit
c3f24316a0
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ class WebFingerError(Exception):
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def get_user_from_username(viewer, username):
|
def get_user_from_username(viewer, username):
|
||||||
"""helper function to resolve a localname or a username to a user"""
|
"""helper function to resolve a localname or a username to a user"""
|
||||||
if viewer.is_authenticated and viewer.localname == username:
|
if viewer.is_authenticated and viewer.localname == username:
|
||||||
|
|
Loading…
Reference in a new issue