Browse Source

fix: 对匿名优化展示

master
欧醚 2 years ago
parent
commit
ea95c869ad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      static/index.html

+ 1
- 1
static/index.html View File

@ -248,7 +248,7 @@
function render_content(text, is_mask_bot, emojis) {
if (is_mask_bot) {
text = text.replace(/^<p>\[([^\]]*)\]:<br \/>/, '<p>').replace(/匿了<\/p><\/div>$/, '</p></div>');
text = text.replace(/^<p>\[([^\]]*)\]:<br \/>/, '<p>').replace(/匿了<\/p>$/, '</p>');
}
emojis.forEach((emoji) => {
text = text.replaceAll(`:${emoji.shortcode}:`, `<img class="emoji" src="${emoji.url}">`);

Loading…
Cancel
Save