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
|
@ -117,6 +117,9 @@ export async function getMentions(url) {
|
||||||
let mentions = [];
|
let mentions = [];
|
||||||
let page = 0;
|
let page = 0;
|
||||||
let perPage = 100;
|
let perPage = 100;
|
||||||
|
|
||||||
|
// strip search params
|
||||||
|
url = url.split(/[?#]/)[0];
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const results = await fetch(
|
const results = await fetch(
|
||||||
|
|
Loading…
Reference in a new issue