diff options
author | FChannel <=> | 2021-01-24 21:34:37 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-24 21:34:37 -0800 |
commit | a706133ba7c15f366dba66d10bf8f556147e40f1 (patch) | |
tree | ddf348539fd49f1fdd2362077959b7ab2528dd7b /Database.go | |
parent | b62c79a0cff349ce475d67ed23bdd5d2e0470f76 (diff) |
removed cachereplies to consolidate into replies db
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 6 |
1 files changed, 5 insertions, 1 deletions
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) + } } } } |