fix 404 check, add 404 page mobile style, fix description/rules custom comment

This commit is contained in:
plebeius.eth
2024-05-06 22:02:49 +02:00
parent 5d124d2121
commit 0ead6775ae
3 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const BoardLayout = () => {
const isValidAccountCommentIndex = !accountCommentIndex || (!isNaN(parseInt(accountCommentIndex)) && parseInt(accountCommentIndex) >= 0);
const isValidCommentCid = !commentCid || /^Qm[a-zA-Z0-9]{44}$/.test(commentCid);
const isValidSubplebbitAddress = subplebbitAddress && (subplebbitAddress.includes('.') || /^12D3K[a-zA-Z0-9]{44}$/.test(subplebbitAddress));
const isValidSubplebbitAddress = !subplebbitAddress || subplebbitAddress.includes('.') || /^12D3K[a-zA-Z0-9]{44}$/.test(subplebbitAddress);
if (!isValidAccountCommentIndex || !isValidCommentCid || !isValidSubplebbitAddress) {
return <NotFound />;