selectTag(e)}>
+
selectTag(tag.name)}>
{tag.name}
{tag.deletable && (
deleteTag(tag.name)}>
diff --git a/src/components/env.ts b/src/components/env.ts
index d2bffaa..b18aee3 100644
--- a/src/components/env.ts
+++ b/src/components/env.ts
@@ -71,6 +71,7 @@ export const nfswTags = [
'nasstr',
'nsfw',
'nude',
+ 'nodestr',
'nudeart',
'nudes',
'onlyfans',
@@ -125,6 +126,9 @@ export const nsfwNPubs = [
'npub1nkw853ncf4nmsctujc3hdahwtm03hssrskc2t33qjqedxtpwupfqeukt53', // bpufa
'npub1hjdtj67ckrq0lzga2mchny3wmgn6rptp826djd6edgyru7x6dszq093c0a', // ai
'npub1peq5ds2jaj5en35xgl6r6rxvvk9eh4ppzhs4mpdh9s5y8ffdwl5q7nmyda', // Furry Artworks 18+
+ 'npub1qg550au9hqmpgye4kfrtj7yt85dn60ty5hk0hcm7pktq6g6mzugsufnfcx', // Poppy Clements
+ 'npub16932qv3sz53t9fdlm2n7scct5ahe9fy9vsct36qd0wcwxm94gyks47dcg6', // Preggers
+ 'npub16ye5pezunzcx8y0ecjquks0sr5jkj6lrhfjyu2n9qxt5cxgzrvcqgnvx8s', // Aru Moon
];
export const nsfwPublicKeys = nsfwNPubs.map(npub => (nip19.decode(npub).data as string).toLowerCase());
diff --git a/src/utils/useNav.ts b/src/utils/useNav.ts
index 18a113b..9c21f2e 100644
--- a/src/utils/useNav.ts
+++ b/src/utils/useNav.ts
@@ -20,7 +20,7 @@ const useNav = () => {
let useTags = tags?.split(',') || [];
if (npub == undefined && (useTags == undefined || useTags.length == 0)) {
- useTags = defaultHashTags;
+ useTags = []; // defaultHashTags;
}
return {
diff --git a/src/utils/useUserTags.ts b/src/utils/useUserTags.ts
new file mode 100644
index 0000000..b761481
--- /dev/null
+++ b/src/utils/useUserTags.ts
@@ -0,0 +1,30 @@
+import { useEffect, useState } from 'react';
+
+declare global {
+ interface Window {
+ localStorage: any;
+ }
+}
+
+const useUserTags = (): [string[], (tags: string[]) => void] => {
+ const [userTags, setUserTags] = useState([]);
+
+ useEffect(() => {
+ const previousUserTags = JSON.parse(localStorage.getItem('userTags') as string);
+ console.log(previousUserTags);
+ if (previousUserTags) {
+ setUserTags(previousUserTags);
+ }
+ }, []);
+
+ return [
+ userTags,
+ (tags: string[]) => {
+ console.log(tags);
+ setUserTags(tags);
+ localStorage.setItem('userTags', JSON.stringify(tags));
+ },
+ ];
+};
+
+export default useUserTags;