From 2ca021e2c6599b39e6225fdbd449093517a34418 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sat, 23 Jan 2021 22:37:20 -0800 Subject: caching progress --- OutboxPost.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OutboxPost.go') diff --git a/OutboxPost.go b/OutboxPost.go index 9fb8710..f66c234 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -49,6 +49,7 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { nObj = writeObjectToDB(db, nObj) activity := CreateActivity("Create", nObj) + activity = AddFollowersToActivity(db, activity) MakeActivityRequest(activity) var id string @@ -511,6 +512,8 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { for _, e := range activity.Object.InReplyTo { if IsObjectLocal(db, e.Id) { WriteObjectReplyToLocalDB(db, activity.Object.Id, e.Id) + } else if IsObjectCached(db, e.Id) { + WriteObjectToCache(db, *activity.Object) } } break -- cgit v1.2.3