From 122941b6961edc4a6acd01ad29da56c22787ad0c Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sat, 2 Nov 2024 16:39:39 +1300 Subject: [PATCH] local variable 'server' referenced before assignment --- app/activitypub/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 183a2526..92b6ff94 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -262,6 +262,7 @@ def find_actor_or_create(actor: str, create_if_not_found=True, community_only=Fa actor_url = actor.strip() actor = actor.strip().lower() user = None + server = '' # actor parameter must be formatted as https://server/u/actor or https://server/c/actor # Initially, check if the user exists in the local DB already