mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
cope with user names with upper case letters
This commit is contained in:
parent
5632f9b78f
commit
d076fea654
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ def lemmy_federated_instances():
|
|||
def user_profile(actor):
|
||||
""" Requests to this endpoint can be for a JSON representation of the user, or a HTML rendering of their profile.
|
||||
The two types of requests are differentiated by the header """
|
||||
actor = actor.strip()
|
||||
actor = actor.strip().lower()
|
||||
if current_user.is_authenticated and current_user.is_admin():
|
||||
if '@' in actor:
|
||||
user: User = User.query.filter_by(ap_id=actor).first()
|
||||
|
|
Loading…
Add table
Reference in a new issue