From 242052386e7c980f74d3b720269b542e64856bf5 Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Sun, 20 Nov 2022 22:24:36 -0500 Subject: [PATCH] use correct actor variable for cli_inbox_follow --- relay/manage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/relay/manage.py b/relay/manage.py index a901397..3b31889 100644 --- a/relay/manage.py +++ b/relay/manage.py @@ -146,11 +146,15 @@ def cli_inbox_follow(actor): except KeyError: actor_data = asyncio.run(misc.request(actor)) + + if not actor_data: + return click.echo(f'Failed to fetch actor: {actor}') + inbox = actor_data.shared_inbox message = misc.Message.new_follow( host = app.config.host, - actor = actor.id + actor = actor ) asyncio.run(misc.request(inbox, message))