XF 1.5 [solved] How to determine if a post is in a public thread/conversation?

I used ad_message_body template to add sharing buttons for the first post.

<xen:if is="{$post.position} == 0">
buttons
</xen:if>

It works as expected, but those buttons are visible in conversations too. And as long as conversations are private and there is no point to share them, I want to hide the buttons in conversations.

Is there any variable to check if a post is in a public thread/conversation?
 
This doesn't work for me. Looks like {$contentTemplate} is empty, tried to print its value - got nothing.

But I found out another solution on the page you had shared.

<xen:if is="{$post.position} == 0 AND {$conversation} == 0">

Works as expected. Thanks!
 
Top Bottom