fedimbed: strip masked link stuff from urls
This commit is contained in:
parent
6146b708db
commit
d2aba65df0
1 changed files with 2 additions and 0 deletions
|
@ -1036,6 +1036,8 @@ events.add("messageCreate", "fedimbed", async function (msg) {
|
||||||
const hasSpoiler = SPOILER_REGEX.test(url);
|
const hasSpoiler = SPOILER_REGEX.test(url);
|
||||||
url = url
|
url = url
|
||||||
.replace(/\|/g, "")
|
.replace(/\|/g, "")
|
||||||
|
.replace(/^\]\)/, "")
|
||||||
|
.replace(/\)$/, "")
|
||||||
.trim()
|
.trim()
|
||||||
.replace("@\u200b", "@")
|
.replace("@\u200b", "@")
|
||||||
.replace("@%E2%80%8B", "@");
|
.replace("@%E2%80%8B", "@");
|
||||||
|
|
Loading…
Reference in a new issue