diff options
author | FChannel <=> | 2021-01-24 12:12:13 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-24 12:12:13 -0800 |
commit | e3aac28acc5e776107c94c01a88bbd577380d6c5 (patch) | |
tree | 75388099aba22f85227d565e229f11530a8cc090 /OutboxPost.go | |
parent | 895d90f8dd038540e65cf291f003195a0f6bd024 (diff) |
more caching progress
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OutboxPost.go b/OutboxPost.go index dbb49d2..12f9441 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -468,8 +468,6 @@ func GetActivityFromJson(r *http.Request, db *sql.DB) Activity { to := GetToFromJson(respActivity.ToRaw) cc := GetToFromJson(respActivity.CcRaw) - jObj.AttributedTo = actor.Id - nActivity.AtContext.Context = "https://www.w3.org/ns/activitystreams" nActivity.Type = nType nActivity.Actor = &actor @@ -517,6 +515,13 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { WriteObjectToCache(db, *activity.Object) } } + + for _, e := range activity.To { + if IsActorLocal(db, e) { + WriteObjectToCache(db, *activity.Object) + } + } + break case "Delete": |