mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
oops missed one #170
This commit is contained in:
parent
2b7cd2302c
commit
37b95f03b9
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ def user_profile(actor):
|
||||||
else:
|
else:
|
||||||
user: User = User.query.filter_by(user_name=actor, ap_id=None).first()
|
user: User = User.query.filter_by(user_name=actor, ap_id=None).first()
|
||||||
if user is None:
|
if user is None:
|
||||||
user = User.query.filter_by(ap_profile_id=f'https://{current_app.config["SERVER_NAME"]}/u/{actor}', deleted=False, ap_id=None).first()
|
user = User.query.filter_by(ap_profile_id=f'https://{current_app.config["SERVER_NAME"]}/u/{actor.lower()}', deleted=False, ap_id=None).first()
|
||||||
else:
|
else:
|
||||||
if '@' in actor:
|
if '@' in actor:
|
||||||
user: User = User.query.filter_by(ap_id=actor.lower(), deleted=False, banned=False).first()
|
user: User = User.query.filter_by(ap_id=actor.lower(), deleted=False, banned=False).first()
|
||||||
|
|
Loading…
Add table
Reference in a new issue