From bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Mon, 18 May 2026 23:01:54 +0300 Subject: snapshot: 2026-05-18 --- itkxka.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 itkxka.md (limited to 'itkxka.md') diff --git a/itkxka.md b/itkxka.md new file mode 100644 index 0000000..1b61f01 --- /dev/null +++ b/itkxka.md @@ -0,0 +1,38 @@ +--- +id: itkxka +date: 2026-05-18T22:45:08+0300 +languages: [en] +aliases: + +reviews: + +tags: +- draft +- invention +- snippet + +- zettelkasten +--- +# Exclude missing-backlinks to excluded notes in ZK + +```diff +diff --git a/internal/adapter/sqlite/note_dao.go b/internal/adapter/sqlite/note_dao.go +index 3910ba6..9d0a07a 100644 +--- a/internal/adapter/sqlite/note_dao.go ++++ b/internal/adapter/sqlite/note_dao.go +@@ -688,6 +688,7 @@ WHERE collection_id IN (SELECT id FROM collections t WHERE kind = '%s' AND (%s)) + ) + WHERE incoming.target_id IS NOT NULL + AND outgoing.source_id IS NULL ++ AND incoming.source_id NOT IN (` + joinNoteIDs(opts.ExcludeIDs, ",") + `) + )`) + } + +``` + + +## Up +- + +## Down +- -- cgit v1.2.3-70-g09d2