From f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 17 Nov 2022 08:21:42 -0700 Subject: Add image/icon upload --- activities/models/post.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activities/models/post.py') diff --git a/activities/models/post.py b/activities/models/post.py index caa2981..25afdda 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -27,8 +27,10 @@ class PostStates(StateGraph): """ post = await instance.afetch_full() # Non-local posts should not be here + # TODO: This seems to keep happening. Work out how? if not post.local: - raise ValueError(f"Trying to run handle_new on a non-local post {post.pk}!") + print(f"Trying to run handle_new on a non-local post {post.pk}!") + return cls.fanned_out # Build list of targets - mentions always included targets = set() async for mention in post.mentions.all(): -- cgit v1.2.3