feat: strip hash and search params from web mention url

This commit is contained in:
Ayo Ayco 2025-02-21 18:45:09 +01:00
parent 7daf0320f9
commit 796bf5f113

View file

@ -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}`