mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 05:18:00 +08:00
FIX: If a group is unmentionable, don't render it as mentionable
Now if a group is visible but unmentionable, users can search for it when composing by typing with `@`, but it will be rendered without the grey background color. It will also no longer pop up a JIT warning saying "You are about to mention X people" because the group will not be mentioned.
This commit is contained in:
@ -55,7 +55,7 @@ QUnit.test("linkSeenMentions replaces users and groups", async assert => {
|
||||
});
|
||||
|
||||
assert.equal($("a", $root)[0].text, "@valid_user");
|
||||
assert.equal($("a", $root)[1].text, "@mentionable_group");
|
||||
assert.equal($("a", $root)[1].text, "@valid_group");
|
||||
assert.equal($("a.notify", $root).text(), "@mentionable_group");
|
||||
assert.equal($("span.mention", $root)[0].innerHTML, "@invalid");
|
||||
assert.equal($("span.mention", $root)[1].innerHTML, "@valid_group");
|
||||
});
|
||||
|
Reference in New Issue
Block a user