cleanup imports
This commit is contained in:
parent
850b468ded
commit
46f0b34899
2 changed files with 3 additions and 4 deletions
|
@ -9,7 +9,7 @@ import platform
|
||||||
from aiohttp.web import AppRunner, TCPSite
|
from aiohttp.web import AppRunner, TCPSite
|
||||||
from cachetools import LRUCache
|
from cachetools import LRUCache
|
||||||
|
|
||||||
from . import app, misc, views, __version__
|
from . import app, views, __version__
|
||||||
from .config import DotDict, RelayConfig, relay_software_names
|
from .config import DotDict, RelayConfig, relay_software_names
|
||||||
from .database import RelayDatabase
|
from .database import RelayDatabase
|
||||||
from .misc import check_open_port, follow_remote_actor, unfollow_remote_actor
|
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):
|
if config.is_banned(target):
|
||||||
return click.echo(f'Error: Refusing to follow banned actor: {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}')
|
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):
|
if not database.get_inbox(target):
|
||||||
return click.echo(f'Error: Not following actor: {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}')
|
click.echo(f'Sent unfollow message to: {target}')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import logging
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
from . import app, misc
|
from . import app, misc
|
||||||
from .misc import distill_inboxes, distill_object_id, request
|
|
||||||
|
|
||||||
|
|
||||||
async def handle_relay(actor, data, request):
|
async def handle_relay(actor, data, request):
|
||||||
|
|
Loading…
Reference in a new issue