fix: update forum mentions to use new profile URLs

This commit is contained in:
Index 2024-07-25 10:16:26 -05:00
parent ad3fe90caf
commit 2795cb7489

View file

@ -24,7 +24,7 @@ function ForumMentions() {
let match;
while ((match = Regex.exec(text.innerText)) !== null) {
const Username = match[0].substring(1);
FormattedText = FormattedText.replaceAll(match[0], `<a href="/users/@${Username}?ref=${encodeURIComponent(window.location.pathname)}" class="polyplus-mention">${match[0]}</a>`);
FormattedText = FormattedText.replaceAll(match[0], `<a href="/u/${Username}" class="polyplus-mention">${match[0]}</a>`);
}
text.innerHTML = FormattedText;
}