diff --git a/src/d.ts b/src/d.ts
index 042f165..d90a39f 100644
--- a/src/d.ts
+++ b/src/d.ts
@@ -1,5 +1,8 @@
+/* eslint-disable @typescript-eslint/no-unused-vars */
///
+declare const __XXX: boolean;
+
declare module "*.jpg" {
const value: unknown;
export default value;
diff --git a/src/hooks/live-streams.ts b/src/hooks/live-streams.ts
index 5a1322a..8aa6b8d 100644
--- a/src/hooks/live-streams.ts
+++ b/src/hooks/live-streams.ts
@@ -37,7 +37,15 @@ export function useStreamsFeed(tag?: string) {
const feed = useRequestBuilder(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]);
diff --git a/webpack.config.js b/webpack.config.js
index 90befa8..b86e765 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -65,6 +65,9 @@ const config = {
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
+ }),
+ new webpack.DefinePlugin({
+ __XXX: process.env["__XXX"] || JSON.stringify(false)
})
],
module: {