Add logging for mentions data in Webmentions component
All checks were successful
Deploy / deploy (push) Successful in 1m18s
All checks were successful
Deploy / deploy (push) Successful in 1m18s
This commit is contained in:
parent
8003d501d4
commit
4aa001e1e9
1 changed files with 4 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ const { likes, reposts, replies, mentions } = groupMentions(all);
|
|||
|
||||
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) {
|
||||
return m.author?.name?.trim()?.[0]?.toUpperCase() ?? '?';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue