From 4abf08a7d49abb381bb4a5771af73a8ca34851e1 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 13 Jul 2021 21:32:22 -0700 Subject: check post blacklist for caching other instances posts --- cacheDatabase.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cacheDatabase.go b/cacheDatabase.go index deaed2e..2fe0a38 100644 --- a/cacheDatabase.go +++ b/cacheDatabase.go @@ -37,6 +37,11 @@ func WriteObjectToCache(db *sql.DB, obj ObjectBase) ObjectBase { } func WriteActorObjectToCache(db *sql.DB, obj ObjectBase) ObjectBase { + + if(IsPostBlacklist(db, obj.Content)){ + return obj + } + if len(obj.Attachment) > 0 { if IsIDLocal(db, obj.Id) { -- cgit v1.2.3