aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go9
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":