summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 08:21:42 -0700
committerAndrew Godwin2022-11-17 12:21:44 -0700
commitf5eafb0ca0af3ed064202abbe99bfbeef8bbb74d (patch)
treed01453e94f371956e7e989351b51e6ed6eb42541 /activities
parent7f8e792402b66dbb4a721be4f44306d528931b86 (diff)
downloadtakahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.tar.gz
takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.tar.bz2
takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.zip
Add image/icon upload
Diffstat (limited to 'activities')
-rw-r--r--activities/models/post.py4
1 files changed, 3 insertions, 1 deletions
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():