diff --git a/src/components/NoteStats/ZapButton.tsx b/src/components/NoteStats/ZapButton.tsx index 0e9325f9..6ffbe931 100644 --- a/src/components/NoteStats/ZapButton.tsx +++ b/src/components/NoteStats/ZapButton.tsx @@ -35,7 +35,6 @@ export default function ZapButton({ event }: { event: Event }) { useEffect(() => { client.fetchProfile(event.pubkey).then((profile) => { if (!profile) return - if (pubkey === profile.pubkey) return const lightningAddress = getLightningAddressFromProfile(profile) if (lightningAddress) setDisable(false) }) diff --git a/src/components/ZapDialog/index.tsx b/src/components/ZapDialog/index.tsx index 923e8405..65cd5145 100644 --- a/src/components/ZapDialog/index.tsx +++ b/src/components/ZapDialog/index.tsx @@ -139,6 +139,7 @@ function ZapDialogContent({ const { defaultZapSats, defaultZapComment } = useZap() const [sats, setSats] = useState(defaultAmount ?? defaultZapSats) const [comment, setComment] = useState(defaultComment ?? defaultZapComment) + const isSelfZap = useMemo(() => pubkey === recipient, [pubkey, recipient]) const [zapping, setZapping] = useState(false) const presetAmounts = useMemo(() => { if (i18n.language.startsWith('zh')) { @@ -229,6 +230,13 @@ function ZapDialogContent({ + {/* Self-zap easter egg warning */} + {isSelfZap && ( +
+ {t('selfZapWarning')} +
+ )} + {/* Preset sats buttons */}
{presetAmounts.map(({ display, val }) => ( diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index adbf8e7b..f9da71ae 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -491,5 +491,6 @@ export default { 'Explore Relays': 'استكشف المرحلات', 'Choose a feed': 'اختر خلاصة', 'and {{x}} others': 'و {{x}} آخرون' + selfZapWarning: 'Jumble غير مسؤولة عما يحدث إذا أرسلت zap لنفسك. تابع على مسؤوليتك الخاصة. 😉⚡', } } diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index 391e676a..3b9a7c35 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -505,5 +505,6 @@ export default { 'Explore Relays': 'Relays erkunden', 'Choose a feed': 'Wähle einen Feed', 'and {{x}} others': 'und {{x}} andere' + selfZapWarning: 'Jumble ist nicht verantwortlich für das, was passiert, wenn Sie sich selbst zappen. Fahren Sie auf eigene Gefahr fort. 😉⚡', } } diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 2745f982..37cac39c 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -490,5 +490,6 @@ export default { 'Explore Relays': 'Explore Relays', 'Choose a feed': 'Choose a feed', 'and {{x}} others': 'and {{x}} others' + selfZapWarning: 'Jumble is not responsible for what happens if you zap yourself. Proceed at your own risk. 😉⚡', } } diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 71d6560a..8f823bb8 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -499,5 +499,6 @@ export default { 'Explore Relays': 'Explorar Relays', 'Choose a feed': 'Elige un feed', 'and {{x}} others': 'y {{x}} otros' + selfZapWarning: 'Jumble no se hace responsable de lo que suceda si te zapeas a ti mismo. Procede bajo tu propio riesgo. 😉⚡', } } diff --git a/src/i18n/locales/fa.ts b/src/i18n/locales/fa.ts index 8202d708..cd225da4 100644 --- a/src/i18n/locales/fa.ts +++ b/src/i18n/locales/fa.ts @@ -494,5 +494,6 @@ export default { 'Explore Relays': 'کاوش در رله‌ها', 'Choose a feed': 'یک فید انتخاب کنید', 'and {{x}} others': 'و {{x}} دیگر' + selfZapWarning: 'Jumble مسئولیتی در قبال اتفاقاتی که در صورت ارسال zap به خودتان می‌افتد ندارد. با مسئولیت خود ادامه دهید. 😉⚡', } } diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index c3a662eb..17363e3c 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -504,5 +504,6 @@ export default { 'Explore Relays': 'Explorer les relais', 'Choose a feed': 'Choisir un fil', 'and {{x}} others': 'et {{x}} autres' + selfZapWarning: "Jumble n'est pas responsable de ce qui se passe si vous vous zappez vous-même. Procédez à vos risques et périls. 😉⚡", } } diff --git a/src/i18n/locales/hi.ts b/src/i18n/locales/hi.ts index 1bfe96c3..d1e551c0 100644 --- a/src/i18n/locales/hi.ts +++ b/src/i18n/locales/hi.ts @@ -496,5 +496,6 @@ export default { 'Explore Relays': 'रिले एक्सप्लोर करें', 'Choose a feed': 'एक फीड चुनें', 'and {{x}} others': 'और {{x}} अन्य' + selfZapWarning: 'Jumble आपके द्वारा स्वयं को zap करने पर क्या होता है, इसके लिए जिम्मेदार नहीं है। अपनी जोखिम पर आगे बढ़ें। 😉⚡', } } diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index aeb596c0..a1853e53 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -499,5 +499,6 @@ export default { 'Explore Relays': 'Esplora Relay', 'Choose a feed': 'Scegli un feed', 'and {{x}} others': 'e altri {{x}}' + selfZapWarning: 'Jumble non è responsabile di ciò che accade se zappi te stesso. Procedi a tuo rischio e pericolo. 😉⚡', } } diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index a717e155..bb258b9c 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -495,5 +495,6 @@ export default { 'Explore Relays': 'リレーを探索', 'Choose a feed': 'フィードを選択', 'and {{x}} others': 'および他{{x}}人' + selfZapWarning: 'Jumble は、あなたが自分自身にザップした場合の結果について責任を負いません。自己責任で続行してください。😉⚡', } } diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index fa237983..d9535775 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -495,5 +495,6 @@ export default { 'Explore Relays': '릴레이 탐색', 'Choose a feed': '피드 선택', 'and {{x}} others': '및 기타 {{x}}명' + selfZapWarning: 'Jumble은 자신에게 Zap을 보낼 때 발생하는 일에 대해 책임을 지지 않습니다. 본인의 책임 하에 진행하세요. 😉⚡', } } diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index 652c55fc..eec98222 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -499,5 +499,6 @@ export default { 'Explore Relays': 'Eksploruj Relay', 'Choose a feed': 'Wybierz feed', 'and {{x}} others': 'i {{x}} innych' + selfZapWarning: 'Jumble nie ponosi odpowiedzialności za to, co się stanie, jeśli zappujesz samego siebie. Kontynuuj na własne ryzyko. 😉⚡', } } diff --git a/src/i18n/locales/pt-BR.ts b/src/i18n/locales/pt-BR.ts index 10cfeee2..20ef018f 100644 --- a/src/i18n/locales/pt-BR.ts +++ b/src/i18n/locales/pt-BR.ts @@ -496,5 +496,6 @@ export default { 'Explore Relays': 'Explorar Relays', 'Choose a feed': 'Escolha um feed', 'and {{x}} others': 'e {{x}} outros' + selfZapWarning: 'Jumble não é responsável pelo que acontece se você zap a si mesmo. Prossiga por sua conta e risco. 😉⚡', } } diff --git a/src/i18n/locales/pt-PT.ts b/src/i18n/locales/pt-PT.ts index b6ce7a3d..f699358f 100644 --- a/src/i18n/locales/pt-PT.ts +++ b/src/i18n/locales/pt-PT.ts @@ -499,5 +499,6 @@ export default { 'Explore Relays': 'Explorar Relays', 'Choose a feed': 'Escolha um feed', 'and {{x}} others': 'e {{x}} outros' + selfZapWarning: 'Jumble não é responsável pelo que acontece se você zap a si mesmo. Prossiga por sua conta e risco. 😉⚡', } } diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index ea719b22..d0756641 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -501,5 +501,6 @@ export default { 'Explore Relays': 'Исследовать Relay', 'Choose a feed': 'Выберите ленту', 'and {{x}} others': 'и {{x}} других' + selfZapWarning: 'Jumble не несет ответственности за то, что произойдет, если вы отправите zap самому себе. Продолжайте на свой страх и риск. 😉⚡', } } diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index fa5a958b..90ddcdec 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -489,5 +489,6 @@ export default { 'Explore Relays': 'สำรวจรีเลย์', 'Choose a feed': 'เลือกฟีด', 'and {{x}} others': 'และอื่น ๆ {{x}} รายการ' + selfZapWarning: 'Jumble ไม่รับผิดชอบต่อสิ่งที่เกิดขึ้นหากคุณ zap ตัวเอง ดำเนินการด้วยความเสี่ยงของคุณเอง 😉⚡', } } diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index 83b6f997..ad1f59d8 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -487,5 +487,6 @@ export default { 'Explore Relays': '探索服务器', 'Choose a feed': '选择一个动态', 'and {{x}} others': '和其他 {{x}} 人' + selfZapWarning: 'Jumble 对您给自己打赏所发生的事情概不负责。风险自负。😉⚡', } }