Skip to content

Commit

Permalink
弹幕处理机制,前置校验用户名+弹幕内容违禁词
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Oct 2, 2023
1 parent 6fcc392 commit 8e8c8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/my_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,8 @@ def comment_handle(self, data):
"""
用户名也得过滤一下,防止炸弹人
"""
# 用户弹幕违禁判断
if self.prohibitions_handle(user_name):
# 用户名以及弹幕违禁判断
if self.prohibitions_handle(user_name) or self.prohibitions_handle(content):
return

# 1、本地问答库 处理
Expand Down

0 comments on commit 8e8c8da

Please sign in to comment.