Add logging for mentions data in Webmentions component
All checks were successful
Deploy / deploy (push) Successful in 1m18s

This commit is contained in:
Adrian Altner 2026-04-22 01:58:44 +02:00
parent 8003d501d4
commit 4aa001e1e9

View file

@ -15,6 +15,10 @@ const { likes, reposts, replies, mentions } = groupMentions(all);
const facepile = [...likes, ...reposts]; const facepile = [...likes, ...reposts];
console.log(
`[webmentions component] target=${target.toString()} all=${all.length} likes=${likes.length} reposts=${reposts.length} replies=${replies.length} mentions=${mentions.length} facepile=${facepile.length}`,
);
function authorInitial(m: WMEntry) { function authorInitial(m: WMEntry) {
return m.author?.name?.trim()?.[0]?.toUpperCase() ?? '?'; return m.author?.name?.trim()?.[0]?.toUpperCase() ?? '?';
} }