This commit is contained in:
gled 2019-07-25 12:14:58 -07:00
parent 0b122b0d32
commit ad0f810c71

View file

@ -345,7 +345,7 @@ async def inbox(request):
if instance not in not_subd:
not_subd.append(instance)
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']:
raise aiohttp.web.HTTPUnauthorized(body='access denied', content_type='text/plain')