fixed 增加代码库文本内容显示敏感词检测2

This commit is contained in:
xxq250 2025-07-07 15:47:13 +08:00
parent 44c8d0be7c
commit b02cf8fe79
1 changed files with 3 additions and 1 deletions

View File

@ -266,7 +266,9 @@ module RepositoriesHelper
if download_type(file_type)
return entry['content']
end
render_decode64_content(entry['content'])
text = render_decode64_content(entry['content'])
text = "该内容不合规,请修改。" if text.present? && !HarmoniousDictionary.clean?(text)
text
end
end