新自动拉黑机制,阈值可配置

This commit is contained in:
2022-04-10 15:29:53 +08:00
parent 29ecee5e56
commit f7fc9a98e4
3 changed files with 74 additions and 9 deletions

View File

@@ -566,7 +566,7 @@ class FlowSidebar extends PureComponent {
API.block(type, id, this.props.token)
.then((json) => {
let data = json.data;
alert(`操作成功,其成为危险用户进度 ${data.curr}/${data.threshold}`);
alert(`操作成功,当前拉黑数 ${data.curr}`);
!!on_complete && on_complete();
})
.catch((e) => {
@@ -1355,6 +1355,7 @@ class SubFlow extends PureComponent {
localStorage['_LATEST_POST_ID'] = '' + max_id;
}
window.TITLE = json.custom_title;
window.AUTO_BLCOK = json.auto_block_rank;
json.data.forEach((x) => {
if (x.comments) {
let comment_json = {