diff --git a/relay/manage.py b/relay/manage.py index 3765ff5..b07652c 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -9,7 +9,7 @@ import platform from aiohttp.web import AppRunner, TCPSite from cachetools import LRUCache -from . import app, misc, views, __version__ +from . import app, views, __version__ from .config import DotDict, RelayConfig, relay_software_names from .database import RelayDatabase from .misc import check_open_port, follow_remote_actor, unfollow_remote_actor @@ -385,7 +385,7 @@ async def handle_follow_actor(app, target): if config.is_banned(target): return click.echo(f'Error: Refusing to follow banned actor: {target}') - await misc.follow_remote_actor(target) + await follow_remote_actor(target) click.echo(f'Sent follow message to: {target}') @@ -398,7 +398,7 @@ async def handle_unfollow_actor(app, target): if not database.get_inbox(target): return click.echo(f'Error: Not following actor: {target}') - await misc.unfollow_remote_actor(target) + await unfollow_remote_actor(target) click.echo(f'Sent unfollow message to: {target}') diff --git a/relay/processors.py b/relay/processors.py index 130077e..f082ff5 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -4,7 +4,6 @@ import logging from uuid import uuid4 from . import app, misc -from .misc import distill_inboxes, distill_object_id, request async def handle_relay(actor, data, request):