Browse Source

feat: remove kind 20 events from the main feed

imwald
codytseng 1 year ago
parent
commit
4994b26520
  1. 4
      src/components/NoteList/index.tsx

4
src/components/NoteList/index.tsx

@ -53,9 +53,7 @@ export default function NoteList({
const isPictures = useMemo(() => listMode === 'pictures', [listMode]) const isPictures = useMemo(() => listMode === 'pictures', [listMode])
const noteFilter = useMemo(() => { const noteFilter = useMemo(() => {
return { return {
kinds: isPictures kinds: isPictures ? [PICTURE_EVENT_KIND] : [kinds.ShortTextNote, kinds.Repost],
? [PICTURE_EVENT_KIND]
: [kinds.ShortTextNote, kinds.Repost, PICTURE_EVENT_KIND],
...filter ...filter
} }
}, [JSON.stringify(filter), isPictures]) }, [JSON.stringify(filter), isPictures])

Loading…
Cancel
Save