Define XXX

This commit is contained in:
2023-08-06 14:56:43 +01:00
parent e607df56df
commit b9f0d349ef
3 changed files with 15 additions and 1 deletions

View File

@ -37,7 +37,15 @@ export function useStreamsFeed(tag?: string) {
const feed = useRequestBuilder<NoteCollection>(System, NoteCollection, rb);
const feedSorted = useMemo(() => {
if (feed.data) {
return [...feed.data];
if (__XXX) {
return [...feed.data].filter(
(a) => findTag(a, "content-warning") !== undefined
);
} else {
return [...feed.data].filter(
(a) => findTag(a, "content-warning") === undefined
);
}
}
return [];
}, [feed.data]);