From a706133ba7c15f366dba66d10bf8f556147e40f1 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Sun, 24 Jan 2021 21:34:37 -0800 Subject: removed cachereplies to consolidate into replies db --- Database.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Database.go') diff --git a/Database.go b/Database.go index ea1b031..cce0fcd 100644 --- a/Database.go +++ b/Database.go @@ -235,7 +235,11 @@ func writeObjectReplyToDB(db *sql.DB, obj ObjectBase) { } if update { - WriteObjectUpdatesToDB(db, e) + if IsObjectLocal(db, e.Id) { + WriteObjectUpdatesToDB(db, e) + } else { + WriteObjectUpdatesToCache(db, e) + } } } } -- cgit v1.2.3