wtf git
This commit is contained in:
parent
0b122b0d32
commit
ad0f810c71
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ async def inbox(request):
|
||||||
if instance not in not_subd:
|
if instance not in not_subd:
|
||||||
not_subd.append(instance)
|
not_subd.append(instance)
|
||||||
DATABASE['not-subscribed'] = not_subd
|
DATABASE['not-subscribed'] = not_subd
|
||||||
return aiohttp.web.Response(body=b'{}', content_type='application/activity+json')
|
raise aiohttp.web.HTTPUnauthorized(body='access denied', content_type='text/plain')
|
||||||
|
|
||||||
elif AP_CONFIG['whitelist_enabled'] is True and instance not in AP_CONFIG['whitelist']:
|
elif AP_CONFIG['whitelist_enabled'] is True and instance not in AP_CONFIG['whitelist']:
|
||||||
raise aiohttp.web.HTTPUnauthorized(body='access denied', content_type='text/plain')
|
raise aiohttp.web.HTTPUnauthorized(body='access denied', content_type='text/plain')
|
||||||
|
|
Loading…
Reference in a new issue