From f335640ec5628c94084cecb4bcddd753087a1c56 Mon Sep 17 00:00:00 2001 From: enes Date: Thu, 16 Jan 2025 18:16:36 +0100 Subject: [PATCH] feat(download): add malware scan notice Closes #164 --- src/components/ModForm.tsx | 19 +++++++++++++++++-- src/pages/mod/index.tsx | 10 ++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/components/ModForm.tsx b/src/components/ModForm.tsx index a4a86cd..b9a476f 100644 --- a/src/components/ModForm.tsx +++ b/src/components/ModForm.tsx @@ -434,8 +434,23 @@ export const ModForm = () => {

You can upload your game mod to Github, as an example, and keep - updating it there (another option is catbox.moe). Also, it's advisable - that you hash your package as well with your nostr public key. + updating it there (another option is{' '} + + catbox.moe + + ). Also, it's advisable that you hash your package as well with your + nostr public key. Malware scan service suggestion:{' '} + + https://virustotal.com +

{formState.downloadUrls.map((download, index) => ( diff --git a/src/pages/mod/index.tsx b/src/pages/mod/index.tsx index a2e0ee2..0e93253 100644 --- a/src/pages/mod/index.tsx +++ b/src/pages/mod/index.tsx @@ -615,6 +615,7 @@ const Download = ({ }: DownloadUrl) => { const [showAuthDetails, setShowAuthDetails] = useState(false) const [showNotice, setShowNotice] = useState(false) + const showScanNotice = !malwareScanLink useDidMount(async () => { const isFile = await checkUrlForFile(url) @@ -649,6 +650,15 @@ const Download = ({

)} + {showScanNotice && ( +
+

+ The mod poster hasn't provided a malware scan report for these + files. Be careful. +
+

+
+ )} {/*temporarily commented out the WoT rating for download links within a mod post

Ratings (WIP):

-- 2.34.1