diff --git a/frontend/src/api/chatConfig.js b/frontend/src/api/chatConfig.js index 5afaeae..01eab77 100644 --- a/frontend/src/api/chatConfig.js +++ b/frontend/src/api/chatConfig.js @@ -11,8 +11,8 @@ export const DEFAULT_CONFIG = { blockGiftDanmaku: true, blockLevel: 0, - blockNewbie: true, - blockNotMobileVerified: true, + blockNewbie: false, + blockNotMobileVerified: false, blockKeywords: '', blockUsers: '', blockMedalLevel: 0, diff --git a/frontend/src/components/ChatRenderer/constants.js b/frontend/src/components/ChatRenderer/constants.js index 0f88082..0d1c310 100644 --- a/frontend/src/components/ChatRenderer/constants.js +++ b/frontend/src/components/ChatRenderer/constants.js @@ -137,7 +137,7 @@ export function getGiftShowContent (message, showGiftName) { } export function getShowAuthorName (message) { - if (message.authorNamePronunciation) { + if (message.authorNamePronunciation && message.authorNamePronunciation !== message.authorName) { return `${message.authorName}(${message.authorNamePronunciation})` } return message.authorName diff --git a/frontend/src/components/ChatRenderer/index.vue b/frontend/src/components/ChatRenderer/index.vue index 95dc3cc..66e5ee7 100644 --- a/frontend/src/components/ChatRenderer/index.vue +++ b/frontend/src/components/ChatRenderer/index.vue @@ -379,7 +379,7 @@ export default { } } - this.maybeResizeScrollContainer(), + this.maybeResizeScrollContainer() this.flushMessagesBuffer() this.$nextTick(this.maybeScrollToBottom) }, diff --git a/models/translate.py b/models/translate.py index 0dfd55f..603af52 100644 --- a/models/translate.py +++ b/models/translate.py @@ -54,7 +54,7 @@ def need_translate(text): if any(0x3040 <= ord(c) <= 0x30FF for c in text): return False # 弹幕同传 - if text.startswith('【'): + if '【' in text: return False # 中日双语 if text in NO_TRANSLATE_TEXTS: