FIX: Deprecation
This commit is contained in:
parent
097a959d64
commit
f751c8fde5
|
@ -1,11 +1,12 @@
|
|||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import { iconHTML } from "discourse-common/lib/icon-library";
|
||||
import { later, cancel } from "@ember/runloop";
|
||||
import getURL from "discourse-common/lib/get-url";
|
||||
|
||||
function applyFlairOnMention(element, username) {
|
||||
if (!element) return;
|
||||
|
||||
const href = `${Discourse.BaseUri}/u/${username.toLowerCase()}`;
|
||||
const href = getURL(`/u/${username.toLowerCase()}`);
|
||||
const mentions = element.querySelectorAll(`a.mention[href="${href}"]`);
|
||||
|
||||
mentions.forEach(mention => {
|
||||
|
|
Loading…
Reference in New Issue