fix: ignore mailto OG

This commit is contained in:
zerosoul
2022-04-15 00:12:20 +08:00
parent 354f9b9955
commit f9c43b887d
2 changed files with 4 additions and 1 deletions
@@ -36,7 +36,9 @@ const renderContent = ({
>
{decoratedText}
</a>
<URLPreview url={decoratedHref} />
{!decoratedHref.startsWith("mailto") && (
<URLPreview url={decoratedHref} />
)}
</React.Fragment>
)}
>
+1
View File
@@ -23,6 +23,7 @@ const StyledMsg = styled.div`
}
}
.avatar {
flex-shrink: 0;
cursor: pointer;
width: 40px;
height: 40px;