FEATURE: add class to <aside> quote block when quoting an ignored user (#9511)

* add class to <aside> quote block when quoted an ignored user

* Changed from single to double quotes
This commit is contained in:
Eric Mueller 2020-04-22 18:00:44 +02:00 committed by GitHub
parent 13f2723dcb
commit 45f3517ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -241,6 +241,7 @@ export default class PostCooked {
.slice(0, -1); .slice(0, -1);
if (username.length > 0 && this.ignoredUsers.includes(username)) { if (username.length > 0 && this.ignoredUsers.includes(username)) {
$aside.find("p").remove(); $aside.find("p").remove();
$aside.addClass("ignored-user");
} }
} }
$(".quote-controls", $aside).html(expandContract + navLink); $(".quote-controls", $aside).html(expandContract + navLink);