aboutsummaryrefslogtreecommitdiff
path: root/outboxPost.go
diff options
context:
space:
mode:
authorFChannel <>2021-10-04 20:13:00 -0700
committerFChannel <>2021-10-04 20:13:00 -0700
commite490998c196e5c7a64e8903a500078f5c98e3dad (patch)
tree6efb333b5d2e58c6e8ac5ee21fa9850807a34862 /outboxPost.go
parent51b00e294280b44010736f9afd4b250e9a372340 (diff)
parent36c63daa85818488055edf8ae63af58058e4efb2 (diff)
Merge branch 'development'
Diffstat (limited to 'outboxPost.go')
-rw-r--r--outboxPost.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/outboxPost.go b/outboxPost.go
index cb48d3e..65b9929 100644
--- a/outboxPost.go
+++ b/outboxPost.go
@@ -537,14 +537,23 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
switch activity.Type {
case "Create":
+
for _, e := range activity.To {
if IsActorLocal(db, e) {
if !IsActorLocal(db, activity.Actor.Id) {
+
+ col := GetCollectionFromID(activity.Object.Id)
+
+ if len(col.OrderedItems) < 1 {
+ break
+ }
+
WriteObjectToCache(db, *activity.Object)
ArchivePosts(db, GetActorFromDB(db, e))
}
}
}
+
break
case "Delete":