diff options
author | FChannel <=> | 2021-01-23 22:37:20 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-23 22:37:20 -0800 |
commit | 2ca021e2c6599b39e6225fdbd449093517a34418 (patch) | |
tree | de65bb297a63765f4e471ddd488975466e438df1 /OutboxPost.go | |
parent | 000c206417a91d0f910cba35d16d433a1f038530 (diff) |
caching progress
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |