Skip to content

Commit

Permalink
More and better
Browse files Browse the repository at this point in the history
  • Loading branch information
danakj committed Dec 5, 2023
1 parent c735d84 commit 4bfc5b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/webmentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function renderWebmentions(container) {
}

function getWebmentions(target) {
return fetch(`https://webmention.io/api/mentions.jf2?target=${target}`)
return fetch(`https://webmention.io/api/mentions.jf2?target=${target}&per-page=999`)
.then(response => response.json())
.then(data => data.children);
}
Expand Down Expand Up @@ -62,7 +62,8 @@ function renderWebmention(webmention) {
set(
".webmention-content",
"innerHTML",
webmention.content.html || webmention.content.text
// Emojis come through as "????" which makes for some very rude replies lmao.
(webmention.content.html || webmention.content.text | "").replace("????", "")
);
}

Expand Down

0 comments on commit 4bfc5b0

Please sign in to comment.