mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: compare contents when new files detected
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
(not (:encryption/graph-parsing? @state/state)))
|
||||
(cond
|
||||
(and (= "add" type)
|
||||
(not= (string/trim content) (string/trim db-content))
|
||||
(not (string/includes? path "logseq/pages-metadata.edn")))
|
||||
(p/let [_ (file-handler/alter-file repo path content {:re-render-root? true
|
||||
:from-disk? true})]
|
||||
|
||||
Reference in New Issue
Block a user