mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
[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:
@@ -77,7 +77,7 @@ const compareUrls = (href1, href2) => {
|
|||||||
const url1 = new URL(href1);
|
const url1 = new URL(href1);
|
||||||
const url2 = new URL(href2);
|
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 {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user