aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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