diff options
author | FChannel <=> | 2021-01-28 12:31:44 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 12:31:44 -0800 |
commit | ee3c47a5b2251380ded1239b149fd1f6e6514bfb (patch) | |
tree | 4464e74060f84e47ef19a8449cdce02f4307ee0f /OutboxPost.go | |
parent | faee9db270a22a42e45210529c7998dcede0087b (diff) |
dont write to cache if local actor
Diffstat (limited to 'OutboxPost.go')
-rw-r--r-- | OutboxPost.go | 4 |
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) + } } } |