Przeglądaj źródła

do not decorate self

tags/v1.0.5
Jonathan Cobb 4 lat temu
rodzic
commit
812152422a
1 zmienionych plików z 4 dodań i 2 usunięć
  1. +4
    -2
      bubble-server/src/main/resources/bubble/rule/social/block/site/Reddit.js.hbs

+ 4
- 2
bubble-server/src/main/resources/bubble/rule/social/block/site/Reddit.js.hbs Wyświetl plik

@@ -117,9 +117,11 @@ function {{JS_PREFIX}}_apply_blocks(blocked_users) {
}

if (author.className.indexOf('{{JS_PREFIX}}_bubble_has_icon') === -1) {
let b = {{JS_PREFIX}}_create_block_control(comment, authorName);
if (authorName !== currentUser) {
let b = {{JS_PREFIX}}_create_block_control(comment, authorName);
author.parentNode.insertBefore(b, author);
}
author.className = author.className + ' {{JS_PREFIX}}_bubble_has_icon';
author.parentNode.insertBefore(b, author);
{{JS_PREFIX}}_tally_allow();
}
});


Ładowanie…
Anuluj
Zapisz