mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
Merge branch 'master' into enhance/mobile-silk
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
(ns frontend.modules.instrumentation.posthog
|
||||
(:require [frontend.config :as config]
|
||||
[frontend.util :as util]
|
||||
(:require ["posthog-js$default" :as posthog]
|
||||
[cljs-bean.core :as bean]
|
||||
[frontend.config :as config]
|
||||
[frontend.mobile.util :as mobile-util]
|
||||
[frontend.version :refer [version]]
|
||||
["posthog-js" :as posthog]
|
||||
[cljs-bean.core :as bean]))
|
||||
[frontend.util :as util]
|
||||
[frontend.version :refer [version]]))
|
||||
|
||||
(goog-define POSTHOG-TOKEN "")
|
||||
(def ^:const masked "masked")
|
||||
|
||||
@@ -48,6 +48,13 @@
|
||||
[repo]
|
||||
(get-in @*vector-search-state [:repo->index-info repo :indexing?]))
|
||||
|
||||
(defn- hidden-entity?
|
||||
[entity]
|
||||
(or (ldb/hidden? entity)
|
||||
(let [page (:block/page entity)]
|
||||
(and (ldb/hidden? page)
|
||||
(not= (:block/title page) common-config/quick-add-page-name)))))
|
||||
|
||||
(defn- stale-block-filter-preds
|
||||
"When `reset?`, ignore :logseq.property.embedding/hnsw-label-updated-at in block"
|
||||
[reset?]
|
||||
@@ -57,7 +64,7 @@
|
||||
(and (or (nil? db-ident)
|
||||
(not (string/starts-with? (namespace db-ident) "logseq.")))
|
||||
(not (string/blank? title))
|
||||
(not (ldb/hidden? title))
|
||||
(not (hidden-entity? b))
|
||||
(nil? (:logseq.property/view-for b))
|
||||
(not (keyword-identical?
|
||||
:logseq.property/description
|
||||
|
||||
Reference in New Issue
Block a user