diff --git a/relay/actor.py b/relay/actor.py index f4555a0..025fd37 100644 --- a/relay/actor.py +++ b/relay/actor.py @@ -335,11 +335,6 @@ async def inbox(request): logging.info('Actor not in data or request not validated') raise aiohttp.web.HTTPUnauthorized(body='access denied', content_type='text/plain') - elif instance in AP_CONFIG['blocked_instances']: - INBOUND_STATS['rejected']+=1 - logging.info('Blocked instance') - raise aiohttp.web.HTTPUnauthorized(body='access denied', content_type='text/plain') - elif data['type'] != 'Follow' and 'https://{}/inbox'.format(instance) not in DATABASE['relay-list']: logging.info('Datatype not follow or instance not in relay-list: %r',instance) if data['type'] not in ['Announce','Delete']: