aboutsummaryrefslogtreecommitdiff
path: root/src/Post.js
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-16 22:14:39 -0300
committerLibravatar Renard 2019-09-16 22:14:39 -0300
commit4bd40ee6a423628d9809c33afa86870b8cf4f4fb (patch)
treef9071a0439be196aac65302af0f85b3edb46447e /src/Post.js
parent820fc08f27b95e70395ffb3515aabbec315234b5 (diff)
downloadbai-client-4bd40ee6a423628d9809c33afa86870b8cf4f4fb.tar.gz
bai-client-4bd40ee6a423628d9809c33afa86870b8cf4f4fb.tar.xz
bai-client-4bd40ee6a423628d9809c33afa86870b8cf4f4fb.zip
Mail aƱadido a post
Diffstat (limited to 'src/Post.js')
-rw-r--r--src/Post.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Post.js b/src/Post.js
index f3a5e02..db46106 100644
--- a/src/Post.js
+++ b/src/Post.js
@@ -78,7 +78,10 @@ const Post = ({ index, post, locked, threadId, currentBoard }) => {
src={`https://bienvenidoainternet.org/static/ico/${rndAvatar}.gif`}
/>
<Comment.Content>
- <Comment.Author as="a">
+ <Comment.Author
+ as="a"
+ href={post.mail !== "" ? `mailto:${post.email}` : null}
+ >
#{currentBoard.board_type === 0 ? post.id : index + 1}{" "}
<span
className={post.email === "sage" ? "username sage" : "username"}