mirror of
https://github.com/dergigi/boris.git
synced 2026-01-06 16:34:45 +01:00
fix: check d-tag bookmark for Amethyst grouping
This commit is contained in:
@@ -96,8 +96,9 @@ export function groupIndividualBookmarks(items: IndividualBookmark[]) {
|
||||
// Group by source list, not by content type
|
||||
const nip51Public = sorted.filter(i => i.sourceKind === 10003 && !i.isPrivate)
|
||||
const nip51Private = sorted.filter(i => i.sourceKind === 10003 && i.isPrivate)
|
||||
const amethystPublic = sorted.filter(i => i.sourceKind === 30001 && !i.isPrivate)
|
||||
const amethystPrivate = sorted.filter(i => i.sourceKind === 30001 && i.isPrivate)
|
||||
// Amethyst bookmarks: kind:30001 with d-tag "bookmark"
|
||||
const amethystPublic = sorted.filter(i => i.sourceKind === 30001 && !i.isPrivate && i.setName === 'bookmark')
|
||||
const amethystPrivate = sorted.filter(i => i.sourceKind === 30001 && i.isPrivate && i.setName === 'bookmark')
|
||||
const standaloneWeb = sorted.filter(i => i.sourceKind === 39701)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user