diff --git a/src/constants.ts b/src/constants.ts index 4ee67636..6bcbfe00 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1001,6 +1001,7 @@ export const SUPPORTED_KINDS = [ kinds.LongFormArticle, ExtendedKind.RELAY_REVIEW, ExtendedKind.DISCUSSION, + ExtendedKind.WEB_BOOKMARK, ExtendedKind.ZAP_RECEIPT, ExtendedKind.CALENDAR_EVENT_DATE, ExtendedKind.CALENDAR_EVENT_TIME, diff --git a/src/lib/feed-kind-filter.test.ts b/src/lib/feed-kind-filter.test.ts index c145310f..85aa8b56 100644 --- a/src/lib/feed-kind-filter.test.ts +++ b/src/lib/feed-kind-filter.test.ts @@ -25,7 +25,7 @@ function fakeEvent(partial: Partial & Pick): Even } describe('feed kind groups', () => { - it('posts group toggles kind 1 OPs, highlights, discussions, photos, and voice posts together', () => { + it('posts group toggles kind 1 OPs, highlights, discussions, photos, voice posts, and web bookmarks together', () => { const off = applyFeedPostsGroupToggle([], false) expect(off.showKind1OPs).toBe(false) expect(isFeedPostsGroupEnabled(off.showKind1OPs, off.showKinds)).toBe(false) @@ -37,6 +37,7 @@ describe('feed kind groups', () => { expect(on.showKinds).toContain(ExtendedKind.PICTURE) expect(on.showKinds).toContain(ExtendedKind.VOICE) expect(on.showKinds).toContain(ExtendedKind.MUSIC_TRACK) + expect(on.showKinds).toContain(ExtendedKind.WEB_BOOKMARK) expect(isFeedPostsGroupEnabled(on.showKind1OPs, on.showKinds)).toBe(true) }) diff --git a/src/lib/feed-kind-filter.ts b/src/lib/feed-kind-filter.ts index 1559ea90..a808baec 100644 --- a/src/lib/feed-kind-filter.ts +++ b/src/lib/feed-kind-filter.ts @@ -3,13 +3,14 @@ import { isReplyNoteEvent } from '@/lib/event' import type { Event } from 'nostr-tools' import { kinds } from 'nostr-tools' -/** Kind 1 OPs, highlights, discussions, photos, voice posts — feed filter “Posts” group. */ +/** Kind 1 OPs, highlights, discussions, photos, voice posts, web bookmarks — feed filter “Posts” group. */ export const FEED_POSTS_GROUP_KINDS: readonly number[] = [ kinds.Highlights, ExtendedKind.DISCUSSION, ExtendedKind.PICTURE, ExtendedKind.VOICE, - ExtendedKind.MUSIC_TRACK + ExtendedKind.MUSIC_TRACK, + ExtendedKind.WEB_BOOKMARK ] /** Kind 1 replies, comments, voice comments, superchats — feed filter “Replies” group. */