mirror of
https://github.com/logseq/logseq.git
synced 2026-05-17 01:12:28 +00:00
fix(assets): include last visit page in highlights response https://github.com/logseq/db-test/issues/715
This commit is contained in:
@@ -113,9 +113,12 @@
|
||||
'[:find (pull ?e [*])
|
||||
:in $ ?ref-id
|
||||
:where [?e :logseq.property/asset ?ref-id]]
|
||||
ref-id)]
|
||||
(let [highlights (some->> data (flatten) (map #(:logseq.property.pdf/hl-value %)) (vec))]
|
||||
{:highlights highlights})))
|
||||
ref-id)
|
||||
block-entity (db/entity ref-id)]
|
||||
(let [highlights (some->> data (flatten) (map #(:logseq.property.pdf/hl-value %)) (vec))
|
||||
extra {:page (:logseq.property.asset/last-visit-page block-entity)}]
|
||||
{:highlights highlights
|
||||
:extra (when (some #(not (nil? (% extra))) [:page]) extra)})))
|
||||
|
||||
(defn area-highlight?
|
||||
[hl]
|
||||
|
||||
Reference in New Issue
Block a user