diff options
author | Renard | 2019-09-16 21:55:41 -0300 |
---|---|---|
committer | Renard | 2019-09-16 21:55:41 -0300 |
commit | fa504b80d10ea851ef62103efbe1f328d22ba261 (patch) | |
tree | 1b2a9c6734be9b9f7b1ab9381f73d0ac857ab047 /src/Post.js | |
parent | 66981cecd8e14916d0dff57f6204bb0fb6f3de9c (diff) | |
download | bai-client-fa504b80d10ea851ef62103efbe1f328d22ba261.tar.gz bai-client-fa504b80d10ea851ef62103efbe1f328d22ba261.tar.xz bai-client-fa504b80d10ea851ef62103efbe1f328d22ba261.zip |
Fix html dentro de message
Diffstat (limited to 'src/Post.js')
-rw-r--r-- | src/Post.js | 10 |
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 |