[Glitch] Fix mention matching ignoring path

Port 3ccb6632f2 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2025-10-28 15:05:39 +01:00
parent 52e2d24a4b
commit c43a5a1834

View File

@@ -77,7 +77,7 @@ const compareUrls = (href1, href2) => {
const url1 = new URL(href1);
const url2 = new URL(href2);
return url1.origin === url2.origin && url1.path === url2.path && url1.search === url2.search;
return url1.origin === url2.origin && url1.pathname === url2.pathname && url1.search === url2.search;
} catch {
return false;
}