<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "DiscussionForumPosting",
"@id": "{xen:link 'canonical:threads', $thread}",
"headline": "{xen:jsescape $thread.title}",
"articleSection": "{xen:jsescape $forum.title}",
"articleBody": "{xen:jsescape '{xen:helper snippet, $firstPost.message, 255}'}",
"datePublished": "{xen:jsescape '{xen:date $thread.post_date, 'Y-m-d'}'}",
"dateModified": "{xen:jsescape '{xen:date $thread.last_post_date, 'Y-m-d'}'}",
"image": "{xen:jsescape '{xen:helper avatar, $thread, m, 0, 1}'}",
"author": {
"@type": "Person",
"name": "{xen:jsescape $thread.username}"
},
"url": "{xen:link 'canonical:threads', $thread}",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "https://schema.org/ReplyAction",
"userInteractionCount": "{xen:calc "{$totalPosts} - 1"}"
}
}
</script>