mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
lowercase ap_id on communities
This commit is contained in:
parent
c9dc8780fe
commit
7805563b0f
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ def community_profile(actor):
|
|||
# don't provide activitypub info for remote communities
|
||||
if 'application/ld+json' in request.headers.get('Accept', '') or 'application/activity+json' in request.headers.get('Accept', ''):
|
||||
abort(400)
|
||||
community: Community = Community.query.filter_by(ap_id=actor, banned=False).first()
|
||||
community: Community = Community.query.filter_by(ap_id=actor.lower(), banned=False).first()
|
||||
else:
|
||||
community: Community = Community.query.filter_by(name=actor, ap_id=None).first()
|
||||
if community is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue