fix: update forum mentions to use new profile URLs
This commit is contained in:
parent
ad3fe90caf
commit
2795cb7489
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue