summaryrefslogtreecommitdiffstats
path: root/activities/models
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 18:51:01 -0700
committerAndrew Godwin2022-11-22 18:51:01 -0700
commite52c7df498c5f52b9ba9a2ab854d6f06a9b140d7 (patch)
tree04945d246c01502bf771ce94549607dda989b0ba /activities/models
parent7b867b229d2bf925b94181ea74be460b6aeed493 (diff)
downloadtakahe-e52c7df498c5f52b9ba9a2ab854d6f06a9b140d7.tar.gz
takahe-e52c7df498c5f52b9ba9a2ab854d6f06a9b140d7.tar.bz2
takahe-e52c7df498c5f52b9ba9a2ab854d6f06a9b140d7.zip
Add the self-view timeline event on post
Makes it show up for you immediately
Diffstat (limited to 'activities/models')
-rw-r--r--activities/models/post.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/activities/models/post.py b/activities/models/post.py
index 378de91..876d422 100644
--- a/activities/models/post.py
+++ b/activities/models/post.py
@@ -50,6 +50,7 @@ class PostStates(StateGraph):
subject_post=post,
)
# And one for themselves if they're local
+ # (most views will do this at time of post, but it's idempotent)
if post.author.local:
await FanOut.objects.acreate(
identity_id=post.author_id,