Skip to content

A platform for community discussion. Free, open, simple.

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

Eric Mueller45f3517ef6a1
diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js b/app/assets/javascripts/discourse/widgets/post-cooked.js
index 3b0ca2423d8..f587a76817d 100644
--- a/app/assets/javascripts/discourse/widgets/post-cooked.js
+++ b/app/assets/javascripts/discourse/widgets/post-cooked.js
@@ -241,6 +241,7 @@ export default class PostCooked {
.slice(0, -1);
if (username.length > 0 && this.ignoredUsers.includes(username)) {
$aside.find("p").remove();
+ $aside.addClass("ignored-user");
}
}
$(".quote-controls", $aside).html(expandContract + navLink);