fix: skip add created-by when no user-block

This commit is contained in:
rcmerci
2025-04-11 22:00:00 +08:00
parent c591598d22
commit 411292cd73
2 changed files with 15 additions and 29 deletions

View File

@@ -85,19 +85,6 @@
parse-jwt
:sub))
(defn user-block
"FIXME: move to somewhere else?"
[]
(when-let [user-uuid* (user-uuid)]
(let [user-name (username)
email* (email)]
{:block/uuid (uuid user-uuid*)
:block/name user-name
:block/title user-name
:block/tags :logseq.class/Page
:logseq.property.user/name user-name
:logseq.property.user/email email*})))
(defn logged-in? []
(some? (state/get-auth-refresh-token)))