mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Fix mention matching ignoring path (#36626)
This commit is contained in:
parent
8fb524e07f
commit
3ccb6632f2
|
|
@ -75,7 +75,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user