aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-16 21:55:41 -0300
committerLibravatar Renard 2019-09-16 21:55:41 -0300
commitfa504b80d10ea851ef62103efbe1f328d22ba261 (patch)
tree1b2a9c6734be9b9f7b1ab9381f73d0ac857ab047 /src
parent66981cecd8e14916d0dff57f6204bb0fb6f3de9c (diff)
downloadbai-client-fa504b80d10ea851ef62103efbe1f328d22ba261.tar.gz
bai-client-fa504b80d10ea851ef62103efbe1f328d22ba261.tar.xz
bai-client-fa504b80d10ea851ef62103efbe1f328d22ba261.zip
Fix html dentro de message
Diffstat (limited to 'src')
-rw-r--r--src/Post.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Post.js b/src/Post.js
index 3963a4d..e6f7d62 100644
--- a/src/Post.js
+++ b/src/Post.js
@@ -58,6 +58,16 @@ const Post = ({ index, post, locked, threadId, currentBoard }) => {
}
}
+ post.message = post.message.replace(
+ '<img src="/',
+ '<img src="https://bienvenidoainternet.org/'
+ );
+
+ if (currentBoard.board_type === 0) {
+ post.message = post.message.replace("/res/", "/read/");
+ post.message = post.message.replace(".html#", "/");
+ }
+
return (
<Comment>
<Comment.Avatar