aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 12:31:44 -0800
committerFChannel <=>2021-01-28 12:31:44 -0800
commitee3c47a5b2251380ded1239b149fd1f6e6514bfb (patch)
tree4464e74060f84e47ef19a8449cdce02f4307ee0f /OutboxPost.go
parentfaee9db270a22a42e45210529c7998dcede0087b (diff)
dont write to cache if local actor
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/OutboxPost.go b/OutboxPost.go
index 99f18d9..9b10ab7 100644
--- a/OutboxPost.go
+++ b/OutboxPost.go
@@ -507,7 +507,9 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
case "Create":
for _, e := range activity.To {
if IsActorLocal(db, e) {
- WriteObjectToCache(db, *activity.Object)
+ if !IsActorLocal(db, activity.Actor.Id) {
+ WriteObjectToCache(db, *activity.Object)
+ }
}
}