From 4bfc5b0647948dea4d5737f99c2133f9c02701de Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 4 Dec 2023 23:47:07 -0500 Subject: [PATCH] More and better --- assets/webmentions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/webmentions.js b/assets/webmentions.js index 1d13a50..f3c3752 100644 --- a/assets/webmentions.js +++ b/assets/webmentions.js @@ -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); } @@ -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("????", "") ); }