diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json index 25448c80..6430472c 100644 --- a/public/translations/ar/default.json +++ b/public/translations/ar/default.json @@ -314,5 +314,8 @@ "archived": "مؤرشف", "loading_archive": "تحميل الأرشيف...", "thread_archived": "تم أرشفة الموضوع.", - "view": "عرض" + "view": "عرض", + "report_post": "الإبلاغ عن المنشور", + "delete_post": "حذف المنشور", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json index 696e6a22..047ed850 100644 --- a/public/translations/bn/default.json +++ b/public/translations/bn/default.json @@ -314,5 +314,8 @@ "archived": "আর্কাইভ করা", "loading_archive": "সংরক্ষণাগার লোড করা হচ্ছে...", "thread_archived": "থ্রেড আর্কাইভ করা হয়েছে।", - "view": "দেখুন" + "view": "দেখুন", + "report_post": "পোস্ট রিপোর্ট করুন", + "delete_post": "পোস্ট মুছুন", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json index 6a9de779..43dc07c0 100644 --- a/public/translations/cs/default.json +++ b/public/translations/cs/default.json @@ -314,5 +314,8 @@ "archived": "Archivováno", "loading_archive": "Načítání archivu...", "thread_archived": "Vlákno archivováno.", - "view": "Zobrazit" + "view": "Zobrazit", + "report_post": "Nahlásit příspěvek", + "delete_post": "Smazat příspěvek", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/da/default.json b/public/translations/da/default.json index 037e59fa..bdc89f90 100644 --- a/public/translations/da/default.json +++ b/public/translations/da/default.json @@ -314,5 +314,8 @@ "archived": "Arkiveret", "loading_archive": "Indlæser arkiv...", "thread_archived": "Tråd arkiveret.", - "view": "Se" + "view": "Se", + "report_post": "Rapporter indlæg", + "delete_post": "Slet indlæg", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/de/default.json b/public/translations/de/default.json index e2d58158..c6f975e5 100644 --- a/public/translations/de/default.json +++ b/public/translations/de/default.json @@ -314,5 +314,8 @@ "archived": "Archiviert", "loading_archive": "Archiv wird geladen...", "thread_archived": "Thread archiviert.", - "view": "Ansehen" + "view": "Ansehen", + "report_post": "Beitrag melden", + "delete_post": "Beitrag löschen", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/el/default.json b/public/translations/el/default.json index 7ab76f6b..2d4feb1c 100644 --- a/public/translations/el/default.json +++ b/public/translations/el/default.json @@ -314,5 +314,8 @@ "archived": "Αρχειοθετημένο", "loading_archive": "Φόρτωση αρχείου...", "thread_archived": "Το νήμα αρχειοθετήθηκε.", - "view": "Προβολή" + "view": "Προβολή", + "report_post": "Αναφορά ανάρτησης", + "delete_post": "Διαγραφή ανάρτησης", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/en/default.json b/public/translations/en/default.json index 96dc3574..a6c5ddd8 100644 --- a/public/translations/en/default.json +++ b/public/translations/en/default.json @@ -98,6 +98,9 @@ "invalid_url": "Invalid URL", "image_search": "image search", "hide_post": "Hide post", + "report_post": "Report post", + "delete_post": "Delete post", + "delete_post_confirm": "Delete this post permanently? This cannot be undone.", "hide_thread": "Hide thread", "unhide_post": "Unhide post", "unhide_thread": "Unhide thread", diff --git a/public/translations/es/default.json b/public/translations/es/default.json index 4a242018..df47b22f 100644 --- a/public/translations/es/default.json +++ b/public/translations/es/default.json @@ -314,5 +314,8 @@ "archived": "Archivado", "loading_archive": "Cargando archivo...", "thread_archived": "Hilo archivado.", - "view": "Ver" + "view": "Ver", + "report_post": "Denunciar publicación", + "delete_post": "Eliminar publicación", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json index c529b1c4..0a4b9a9b 100644 --- a/public/translations/fa/default.json +++ b/public/translations/fa/default.json @@ -314,5 +314,8 @@ "archived": "بایگانی شده", "loading_archive": "در حال بارگذاری بایگانی...", "thread_archived": "موضوع بایگانی شد.", - "view": "مشاهده" + "view": "مشاهده", + "report_post": "گزارش پست", + "delete_post": "حذف پست", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json index 78d9ca46..ee27ca42 100644 --- a/public/translations/fi/default.json +++ b/public/translations/fi/default.json @@ -314,5 +314,8 @@ "archived": "Arkistoitu", "loading_archive": "Ladataan arkistoa...", "thread_archived": "Keskustelu arkistoitu.", - "view": "Katso" + "view": "Katso", + "report_post": "Ilmoita viestistä", + "delete_post": "Poista viesti", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json index eff2a902..22fa0237 100644 --- a/public/translations/fil/default.json +++ b/public/translations/fil/default.json @@ -314,5 +314,8 @@ "archived": "Na-archive", "loading_archive": "Naglo-load ng arkibo...", "thread_archived": "Thread na-archive na.", - "view": "Tingnan" + "view": "Tingnan", + "report_post": "I-report ang post", + "delete_post": "Tanggalin ang post", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json index e7b58c84..2e1c7a44 100644 --- a/public/translations/fr/default.json +++ b/public/translations/fr/default.json @@ -314,5 +314,8 @@ "archived": "Archivé", "loading_archive": "Chargement des archives...", "thread_archived": "Fil archivé.", - "view": "Voir" + "view": "Voir", + "report_post": "Signaler la publication", + "delete_post": "Supprimer la publication", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/he/default.json b/public/translations/he/default.json index 1a894b82..24d9282e 100644 --- a/public/translations/he/default.json +++ b/public/translations/he/default.json @@ -314,5 +314,8 @@ "archived": "בארכיון", "loading_archive": "טוען ארכיון...", "thread_archived": "השרשור נשמר בארכיון.", - "view": "צפה" + "view": "צפה", + "report_post": "דווח על פוסט", + "delete_post": "מחק פוסט", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json index ad7ec1f6..21b76681 100644 --- a/public/translations/hi/default.json +++ b/public/translations/hi/default.json @@ -314,5 +314,8 @@ "archived": "संग्रहीत", "loading_archive": "संग्रह लोड हो रहा है...", "thread_archived": "थ्रेड आर्काइव हो गया।", - "view": "देखें" + "view": "देखें", + "report_post": "पोस्ट की रिपोर्ट करें", + "delete_post": "पोस्ट हटाएं", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json index f9d81580..5179b147 100644 --- a/public/translations/hu/default.json +++ b/public/translations/hu/default.json @@ -314,5 +314,8 @@ "archived": "Archivált", "loading_archive": "Archívum betöltése...", "thread_archived": "A téma archiválva.", - "view": "Megtekintés" + "view": "Megtekintés", + "report_post": "Bejegyzés jelentése", + "delete_post": "Bejegyzés törlése", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/id/default.json b/public/translations/id/default.json index cc370c86..256c4271 100644 --- a/public/translations/id/default.json +++ b/public/translations/id/default.json @@ -314,5 +314,8 @@ "archived": "Diarsipkan", "loading_archive": "Memuat arsip...", "thread_archived": "Benang diarsipkan.", - "view": "Lihat" + "view": "Lihat", + "report_post": "Laporkan kiriman", + "delete_post": "Hapus kiriman", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/it/default.json b/public/translations/it/default.json index 0444f6f5..5f33262c 100644 --- a/public/translations/it/default.json +++ b/public/translations/it/default.json @@ -314,5 +314,8 @@ "archived": "Archiviato", "loading_archive": "Caricamento archivio...", "thread_archived": "Thread archiviato.", - "view": "Visualizza" + "view": "Visualizza", + "report_post": "Segnala post", + "delete_post": "Elimina post", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json index 032cacdd..7f9f0deb 100644 --- a/public/translations/ja/default.json +++ b/public/translations/ja/default.json @@ -314,5 +314,8 @@ "archived": "アーカイブ済み", "loading_archive": "アーカイブを読み込み中...", "thread_archived": "スレッドがアーカイブされました。", - "view": "表示" + "view": "表示", + "report_post": "投稿を報告", + "delete_post": "投稿を削除", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json index 4a474a7c..70d5c4d1 100644 --- a/public/translations/ko/default.json +++ b/public/translations/ko/default.json @@ -314,5 +314,8 @@ "archived": "보관됨", "loading_archive": "아카이브 로딩 중...", "thread_archived": "스레드가 아카이브되었습니다.", - "view": "보기" + "view": "보기", + "report_post": "게시물 신고", + "delete_post": "게시물 삭제", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json index 8868f2e5..1a085a73 100644 --- a/public/translations/mr/default.json +++ b/public/translations/mr/default.json @@ -314,5 +314,8 @@ "archived": "संग्रहित", "loading_archive": "संग्रह लोड करत आहे...", "thread_archived": "सूत्र आर्काइव केले गेले.", - "view": "पहा" + "view": "पहा", + "report_post": "पोस्ट निर्वेदन करा", + "delete_post": "पोस्ट हटवा", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json index 7a4dca4b..8ead2dea 100644 --- a/public/translations/nl/default.json +++ b/public/translations/nl/default.json @@ -314,5 +314,8 @@ "archived": "Gearchiveerd", "loading_archive": "Archief laden...", "thread_archived": "Thread gearchiveerd.", - "view": "Bekijken" + "view": "Bekijken", + "report_post": "Bericht melden", + "delete_post": "Bericht verwijderen", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/no/default.json b/public/translations/no/default.json index df1df79c..a4c6699d 100644 --- a/public/translations/no/default.json +++ b/public/translations/no/default.json @@ -314,5 +314,8 @@ "archived": "Arkivert", "loading_archive": "Laster arkiv...", "thread_archived": "Tråd arkivert.", - "view": "Se" + "view": "Se", + "report_post": "Rapporter innlegg", + "delete_post": "Slett innlegg", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json index 9397df62..0e5a00ac 100644 --- a/public/translations/pl/default.json +++ b/public/translations/pl/default.json @@ -314,5 +314,8 @@ "archived": "Zarchiwizowany", "loading_archive": "Ładowanie archiwum...", "thread_archived": "Wątek zarchiwizowany.", - "view": "Zobacz" + "view": "Zobacz", + "report_post": "Zgłoś post", + "delete_post": "Usuń post", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json index e51c08d2..96d1e9c2 100644 --- a/public/translations/pt/default.json +++ b/public/translations/pt/default.json @@ -314,5 +314,8 @@ "archived": "Arquivado", "loading_archive": "Carregando arquivo...", "thread_archived": "Tópico arquivado.", - "view": "Ver" + "view": "Ver", + "report_post": "Denunciar publicação", + "delete_post": "Excluir publicação", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json index f0eab7f6..05c2f1a6 100644 --- a/public/translations/ro/default.json +++ b/public/translations/ro/default.json @@ -314,5 +314,8 @@ "archived": "Arhivat", "loading_archive": "Încărcare arhivă...", "thread_archived": "Thread arhivat.", - "view": "Vizualizare" + "view": "Vizualizare", + "report_post": "Raportează postarea", + "delete_post": "Șterge postarea", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json index ab29814e..ce14c995 100644 --- a/public/translations/ru/default.json +++ b/public/translations/ru/default.json @@ -314,5 +314,8 @@ "archived": "Архивировано", "loading_archive": "Загрузка архива...", "thread_archived": "Тема архивирована.", - "view": "Смотреть" + "view": "Смотреть", + "report_post": "Пожаловаться на пост", + "delete_post": "Удалить пост", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json index 7349141d..7ea461e6 100644 --- a/public/translations/sq/default.json +++ b/public/translations/sq/default.json @@ -314,5 +314,8 @@ "archived": "Arkivuar", "loading_archive": "Po ngarkoni arkivin...", "thread_archived": "Fjala është arkivuar.", - "view": "Shiko" + "view": "Shiko", + "report_post": "Raporto postimin", + "delete_post": "Fshi postimin", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json index 5c01fe89..aa47faa6 100644 --- a/public/translations/sv/default.json +++ b/public/translations/sv/default.json @@ -314,5 +314,8 @@ "archived": "Arkiverad", "loading_archive": "Laddar arkiv...", "thread_archived": "Tråd arkiverad.", - "view": "Visa" + "view": "Visa", + "report_post": "Rapportera inlägg", + "delete_post": "Radera inlägg", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/te/default.json b/public/translations/te/default.json index 8210a5b4..5df0f8a6 100644 --- a/public/translations/te/default.json +++ b/public/translations/te/default.json @@ -314,5 +314,8 @@ "archived": "ఆర్కైవ్ చేయబడింది", "loading_archive": "ఆర్కైవ్ లోడ్ అవుతోంది...", "thread_archived": "థ్రెడ్ ఆర్కైవ్ చేయబడింది.", - "view": "చూడు" + "view": "చూడు", + "report_post": "పోస్ట్ రిపోర్ట్ చేయండి", + "delete_post": "పోస్ట్ తొలగించండి", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/th/default.json b/public/translations/th/default.json index f41dbce3..d5f43ef5 100644 --- a/public/translations/th/default.json +++ b/public/translations/th/default.json @@ -314,5 +314,8 @@ "archived": "เก็บถาวร", "loading_archive": "กำลังโหลดเก็บถาวร...", "thread_archived": "เธรดถูกเก็บถาวร", - "view": "ดู" + "view": "ดู", + "report_post": "แจ้งรายงานโพสต์", + "delete_post": "ลบโพสต์", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json index e081e207..c029c79d 100644 --- a/public/translations/tr/default.json +++ b/public/translations/tr/default.json @@ -314,5 +314,8 @@ "archived": "Arşivlendi", "loading_archive": "Arşiv yükleniyor...", "thread_archived": "Konu arşivlendi.", - "view": "Görüntüle" + "view": "Görüntüle", + "report_post": "Gönderiyi bildir", + "delete_post": "Gönderiyi sil", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json index a22cfc6e..bf3ce649 100644 --- a/public/translations/uk/default.json +++ b/public/translations/uk/default.json @@ -314,5 +314,8 @@ "archived": "Архівовано", "loading_archive": "Завантаження архіву...", "thread_archived": "Тему архівовано.", - "view": "Переглянути" + "view": "Переглянути", + "report_post": "Поскаржитися на пост", + "delete_post": "Видалити пост", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json index 5cd5aefa..037b7c80 100644 --- a/public/translations/ur/default.json +++ b/public/translations/ur/default.json @@ -314,5 +314,8 @@ "archived": "محفوظ شدہ", "loading_archive": "آرکائیو لوڈ ہو رہا ہے...", "thread_archived": "موضوع آرکائیو کر دیا گیا ہے۔", - "view": "دیکھیں" + "view": "دیکھیں", + "report_post": "پوسٹ ریپورٹ کریں", + "delete_post": "پوسٹ حذف کریں", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json index dd333575..3054fa5e 100644 --- a/public/translations/vi/default.json +++ b/public/translations/vi/default.json @@ -314,5 +314,8 @@ "archived": "Đã lưu trữ", "loading_archive": "Đang tải lưu trữ...", "thread_archived": "Chủ đề đã được lưu trữ.", - "view": "Xem" + "view": "Xem", + "report_post": "Báo cáo bài viết", + "delete_post": "Xóa bài viết", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json index b52e5ba2..56ba1cd9 100644 --- a/public/translations/zh/default.json +++ b/public/translations/zh/default.json @@ -314,5 +314,8 @@ "archived": "已归档", "loading_archive": "正在加载归档...", "thread_archived": "主题已归档。", - "view": "查看" + "view": "查看", + "report_post": "举报帖子", + "delete_post": "删除帖子", + "delete_post_confirm": "Delete this post permanently? This cannot be undone." } diff --git a/src/components/edit-menu/__tests__/edit-menu.test.tsx b/src/components/edit-menu/__tests__/edit-menu.test.tsx index da032301..1edf6186 100644 --- a/src/components/edit-menu/__tests__/edit-menu.test.tsx +++ b/src/components/edit-menu/__tests__/edit-menu.test.tsx @@ -128,7 +128,6 @@ const basePost = { parentCid: undefined as string | undefined, pinned: false, postCid: 'post-1', - reason: '', removed: false, spoiler: false, communityAddress: 'music-posting.eth', @@ -228,7 +227,7 @@ describe('EditMenu', () => { expect(alertSpy).toHaveBeenLastCalledWith('cannot_edit_reply'); }); - it('lets comment authors update content, deletion, and reason', async () => { + it('lets comment authors update content and deletion', async () => { testState.privileges = { isAccountCommentAuthor: true, isAccountMod: false, @@ -242,12 +241,9 @@ describe('EditMenu', () => { await click(getLabelCheckbox('Edit?')); const textarea = container.querySelector('textarea'); - const reasonInput = container.querySelector('input[type="text"]'); expect(textarea).not.toBeNull(); - expect(reasonInput).not.toBeNull(); await dispatchInput(textarea as HTMLTextAreaElement, 'Updated body'); - await dispatchInput(reasonInput as HTMLInputElement, 'cleanup'); await clickButton('save'); expect(testState.publishAuthorEditMock).toHaveBeenCalledOnce(); @@ -260,7 +256,6 @@ describe('EditMenu', () => { commentCid: 'comment-1', content: 'Updated body', deleted: true, - reason: 'cleanup', spoiler: false, communityAddress: 'music-posting.eth', }); @@ -343,12 +338,9 @@ describe('EditMenu', () => { await click(getCheckbox('banUser')); const banDurationInput = container.querySelector('[data-testid="ban-duration-input"]'); - const reasonInput = container.querySelector('input[type="text"]'); expect(banDurationInput).not.toBeNull(); - expect(reasonInput).not.toBeNull(); await dispatchInput(banDurationInput as HTMLInputElement, '7'); - await dispatchInput(reasonInput as HTMLInputElement, 'rule violation'); await clickButton('save'); expect(confirmSpy).toHaveBeenCalledWith('purge_confirm'); @@ -363,7 +355,6 @@ describe('EditMenu', () => { communityAddress: 'music-posting.eth', }); expect(testState.modOptions?.commentModeration).toMatchObject({ - reason: 'rule violation', archived: true, locked: true, pinned: true, diff --git a/src/components/edit-menu/edit-menu.module.css b/src/components/edit-menu/edit-menu.module.css index b5c6497c..9a35d003 100644 --- a/src/components/edit-menu/edit-menu.module.css +++ b/src/components/edit-menu/edit-menu.module.css @@ -74,6 +74,7 @@ .bottom button { text-transform: capitalize; margin-left: 2px; + margin-top: 10px; margin-bottom: 2px; } @@ -90,7 +91,8 @@ @media (min-width: 640px) { .bottom button { cursor: pointer; - padding: 2px 6px 3px; + margin-top: 10px; + padding: 2px 6px 3px; } } diff --git a/src/components/edit-menu/edit-menu.tsx b/src/components/edit-menu/edit-menu.tsx index 1b321fe7..48db05aa 100644 --- a/src/components/edit-menu/edit-menu.tsx +++ b/src/components/edit-menu/edit-menu.tsx @@ -36,7 +36,7 @@ const EditMenu = ({ post }: { post: Comment }) => { const { t } = useTranslation(); const isMobile = useIsMobile(); const resolvedPost = withResolvedCommentCommunityAddress(post); - const { author, cid, content, deleted, locked, parentCid, pinned, postCid, reason, removed, spoiler } = resolvedPost || {}; + const { author, cid, content, deleted, locked, parentCid, pinned, postCid, removed, spoiler } = resolvedPost || {}; const communityAddress = getCommentCommunityAddress(resolvedPost); const archived = isCommentArchived(resolvedPost); const authorDisplayName = resolvedPost?.author?.displayName; @@ -80,7 +80,6 @@ const EditMenu = ({ post }: { post: Comment }) => { removed: removed ?? false, purged: purged ?? false, spoiler: spoiler ?? false, - reason, author: modBanExpiresAt ? { banExpiresAt: modBanExpiresAt } : undefined, } : undefined, @@ -101,7 +100,6 @@ const EditMenu = ({ post }: { post: Comment }) => { deleted, locked, pinned, - reason, removed, purged, spoiler, @@ -118,7 +116,6 @@ const EditMenu = ({ post }: { post: Comment }) => { communityAddress, content: publishCommentEditOptions.content, deleted: publishCommentEditOptions.deleted, - reason: publishCommentEditOptions.reason, spoiler: publishCommentEditOptions.spoiler, onChallenge, onChallengeVerification: alertChallengeVerificationFailed, @@ -150,7 +147,6 @@ const EditMenu = ({ post }: { post: Comment }) => { removed: publishCommentEditOptions.commentModeration?.removed, purged: publishCommentEditOptions.commentModeration?.purged, spoiler: publishCommentEditOptions.commentModeration?.spoiler, - reason: publishCommentEditOptions.reason, author: publishCommentEditOptions.commentModeration?.author, }, author: account?.author, @@ -436,18 +432,6 @@ const EditMenu = ({ post }: { post: Comment }) => { )} )} -
- {capitalize(t('reason'))}? ({t('optional')}) - { - const newReason = e.target.value; - setPublishCommentEditOptions((state) => ({ ...state, reason: newReason })); - }} - size={14} - /> -
{showCryptoAddressInfo && (
- steps to set a .eth address as your ID: + steps to set a .bso account address:
  1. - go to{' '} + buy your desired .bso address as .eth on{' '} app.ens.domains {' '} - and search the address
  2. -
  3. once you own the address, go to its page, click on "records", then "edit records"
  4. +
  5. once you own the .eth address, go to its page on ENS, click on "records", then "edit records"
  6. add a new text record with name "bitsocial" and value: {account?.signer?.address}
  7. +
  8. enter your .bso address in the input field above, click "check" to verify it's yours, then click "save"
)} diff --git a/src/lib/utils/url-utils.ts b/src/lib/utils/url-utils.ts index a54f7ace..d0684f7d 100644 --- a/src/lib/utils/url-utils.ts +++ b/src/lib/utils/url-utils.ts @@ -22,11 +22,6 @@ export const isValidURL = (url: string) => { const CHAN_5_HOSTNAMES = ['5chan.app', '5chan.eth.limo', '5chan.eth.link', '5chan.eth.sucks', '5chan.netlify.app']; function getShareBaseUrl(): string { - const { protocol, hostname, origin } = window.location; - if ((protocol === 'https:' || protocol === 'http:') && hostname !== 'localhost' && hostname !== '127.0.0.1') { - return origin; - } - // Electron / Capacitor / local dev fallback return `https://${CHAN_5_HOSTNAMES[0]}`; }