feat: strip hash and search params from web mention url
This commit is contained in:
parent
7daf0320f9
commit
796bf5f113
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ export async function getMentions(url) {
|
|||
let page = 0;
|
||||
let perPage = 100;
|
||||
|
||||
// strip search params
|
||||
url = url.split(/[?#]/)[0];
|
||||
|
||||
while (true) {
|
||||
const results = await fetch(
|
||||
`https://webmention.io/api/mentions.jf2?target=${url}&per-page=${perPage}&page=${page}`
|
||||
|
|
Loading…
Reference in a new issue