aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
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)
}
}