Add debug logging for presence of mentions and facepile in Webmentions component
All checks were successful
Deploy / deploy (push) Successful in 1m16s

This commit is contained in:
Adrian Altner 2026-04-22 02:07:18 +02:00
parent 4aa001e1e9
commit c4e12619a1

View file

@ -34,8 +34,14 @@ function formatDate(iso?: string) {
} }
const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0; const hasAny = facepile.length > 0 || replies.length > 0 || mentions.length > 0;
console.log(`[webmentions component] hasAny=${hasAny}`);
--- ---
<!-- DEBUG MARKER START -->
<div>DEBUG: hasAny={hasAny ? 'true' : 'false'} facepile={facepile.length} likes={likes.length}</div>
<!-- DEBUG MARKER END -->
{ {
hasAny && ( hasAny && (
<section class="webmentions" aria-labelledby="webmentions-heading"> <section class="webmentions" aria-labelledby="webmentions-heading">