fix: encrypted graph

close #2691
This commit is contained in:
Tienson Qin
2021-09-22 21:02:16 +08:00
parent 2a5b7e2be0
commit 73d141ed76
4 changed files with 9 additions and 3 deletions

View File

@@ -30,7 +30,9 @@
(let [repo (config/get-local-repo dir)
{:keys [mtime]} stat
db-content (or (db/get-file repo path) "")]
(when (and content (not (encrypt/content-encrypted? content)))
(when (and content
(not (encrypt/content-encrypted? content))
(not (:encryption/graph-parsing? @state/state)))
(cond
(and (= "add" type)
(not= (string/trim content) (string/trim db-content))