Browse Source

do not decorate self

tags/v1.0.5
Jonathan Cobb 4 years ago
parent
commit
812152422a
1 changed files with 4 additions and 2 deletions
  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 View File

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


if (author.className.indexOf('{{JS_PREFIX}}_bubble_has_icon') === -1) { 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.className = author.className + ' {{JS_PREFIX}}_bubble_has_icon';
author.parentNode.insertBefore(b, author);
{{JS_PREFIX}}_tally_allow(); {{JS_PREFIX}}_tally_allow();
} }
}); });


Loading…
Cancel
Save