소스 검색

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) {


불러오는 중...
취소
저장