ソースを参照

fix user block

tags/v1.0.0
Jonathan Cobb 4年前
コミット
57274c4370
1個のファイルの変更4行の追加2行の削除
  1. +4
    -2
      bubble-server/src/main/resources/bubble/rule/social/block/JsUserBlockerRuleDriver.js.hbs

+ 4
- 2
bubble-server/src/main/resources/bubble/rule/social/block/JsUserBlockerRuleDriver.js.hbs ファイルの表示

@@ -80,8 +80,10 @@ function {{JS_PREFIX}}_update_user (author, do_block) {

function {{JS_PREFIX}}_block_user (author) {
const index = {{JS_PREFIX}}_blocked_users.indexOf(author);
if (index !== -1) {{JS_PREFIX}}_blocked_users.push(author);
{{JS_PREFIX}}_update_user(author, true);
if (index === -1) {
{{JS_PREFIX}}_blocked_users.push(author);
{{JS_PREFIX}}_update_user(author, true);
}
}

function {{JS_PREFIX}}_unblock_user (author) {


読み込み中…
キャンセル
保存