aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-25 14:14:27 -0800
committerFChannel <=>2021-01-25 14:14:27 -0800
commitd94cbd3375df4cd01d068f56da1c6e4b0acd693c (patch)
tree363cc205bfd350c205f26cb23c8a1c05df6df897 /OutboxPost.go
parentaa76455a3dfd4504697e1b3fdb33e0aeb01db4d7 (diff)
removed duplicated To fields
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go9
1 files changed, 1 insertions, 8 deletions
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)
}
}