Ver a proveniência

fix user block

tags/v1.0.0
Jonathan Cobb há 4 anos
ascendente
cometimento
57274c4370
1 ficheiros alterados com 4 adições e 2 eliminações
  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 Ver ficheiro

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


Carregando…
Cancelar
Guardar