fix void link for user address link

This commit is contained in:
plebeius.eth
2023-08-22 11:49:04 +02:00
parent b4692dc37c
commit b75cedffd5
2 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ const Post = ({ content, postQuoteOnClick, postQuoteOnOver, postQuoteOnLeave, po
const linkTarget = matchedText.startsWith('u/') ? "_blank" : "_self";
if (matchedText.startsWith('u/')) {
linkTo = () => {};
linkTo = "#void";
} else if (matchedText.startsWith('p/') || matchedText.startsWith('p/')) {
linkTo = `/${matchedText}`;
}