From d94cbd3375df4cd01d068f56da1c6e4b0acd693c Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Mon, 25 Jan 2021 14:14:27 -0800 Subject: removed duplicated To fields --- OutboxPost.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'OutboxPost.go') diff --git a/OutboxPost.go b/OutboxPost.go index 898d9e8..262c7fd 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -506,16 +506,9 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { activity := GetActivityFromJson(r, db) switch(activity.Type) { case "Create": - 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) - } - } - for _, e := range activity.To { if IsActorLocal(db, e) { + fmt.Println("writing object to cache " + e) WriteObjectToCache(db, *activity.Object) } } -- cgit v1.2.3