From ee3c47a5b2251380ded1239b149fd1f6e6514bfb Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 28 Jan 2021 12:31:44 -0800 Subject: dont write to cache if local actor --- OutboxPost.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OutboxPost.go') 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) + } } } -- cgit v1.2.3