<commit_before>{$liked = false}

{if="$post->likes()->count() > 0"}
    <ul class="list divided spaced middle">
        <li>
            <span class="primary icon red">
                <i class="zmdi zmdi-favorite"></i>
            </span>
            <p>{$post->likes()->count()}</span> {$c->__('button.like')}</p>
            <p class="all">
                {loop="$post->likes"}
                    {if="$public"}
                        {$value->truename}
                    {else}
                        {if="$value->isMine()"}{$liked = [$value->server, $value->node, $value->nodeid]}{/if}
                        <a title="{$value->published|strtotime|prepareDate:true,true}"
                           href="{$c->route('contact', $value->aid)}">
                            {$value->truename}
                        </a>
                    {/if}
                    {if="$key + 1 < $post->likes()->count()"},{/if}
                {/loop}
            </p>
        </li>
    </ul>
{/if}

<ul class="list divided spaced middle">
    {if="$post->comments()->count() > 0"}
        <li class="subheader center">
            <p>
                <span class="info">{$post->comments()->count()}</span> {$c->__('post.comments')}
            </p>
        </li>
    {/if}

    {loop="$post->comments"}
        {if="$value->title || $value->contentraw"}
        <li id="{$value->nodeid|cleanupId}"
            {if="!$public && $value->isMine(true) && $value->isLike()"}class="mine"{/if}>
            {if="!$public && ($value->isMine() || $post->isMine())"}
                <span class="control icon gray active"
                      onclick="PostActions_ajaxDelete('{$value->server}', '{$value->node}', '{$value->nodeid}')">
                    <i class="zmdi zmdi-delete"></i>
                </span>
            {/if}
            {if="$value->contact"}
                {$url = $value->contact->getPhoto('s')}<commit_msg>Fix the , when listing likes<commit_after>{$liked = false}

{if="$post->likes()->count() > 0"}
    <ul class="list divided spaced middle">
        <li>
            <span class="primary icon red">
                <i class="zmdi zmdi-favorite"></i>
            </span>
            <p>{$post->likes()->count()}</span> {$c->__('button.like')}</p>
            <p class="all">
                {loop="$post->likes"}
                    {if="$public"}
                        {$value->truename}
                    {else}
                        {if="$value->isMine()"}
                            {$liked = [$value->server, $value->node, $value->nodeid]}
                        {/if}
                        <a title="{$value->published|strtotime|prepareDate:true,true}"
                           href="{$c->route('contact', $value->aid)}">
                            {$value->truename}</a>{/if}{if="$key + 1 < $post->likes()->count()"},{/if}
                {/loop}
            </p>
        </li>
    </ul>
{/if}

<ul class="list divided spaced middle">
    {if="$post->comments()->count() > 0"}
        <li class="subheader center">
            <p>
                <span class="info">{$post->comments()->count()}</span> {$c->__('post.comments')}
            </p>
        </li>
    {/if}

    {loop="$post->comments"}
        {if="$value->title || $value->contentraw"}
        <li id="{$value->nodeid|cleanupId}"
            {if="!$public && $value->isMine(true) && $value->isLike()"}class="mine"{/if}>
            {if="!$public && ($value->isMine() || $post->isMine())"}
                <span class="control icon gray active"
                      onclick="PostActions_ajaxDelete('{$value->server}', '{$value->node}', '{$value->nodeid}')">
                    <i class="zmdi zmdi-delete"></i>
                </span>
            {/if}
            {if="$value->contact"}
                {$url = $value->contact->getPhoto('s')}
{'fraction_non_alphanumeric': 0.2208636836628512, 'fraction_numerical': 0.0015608740894901144, 'mean_word_length': 1.578806170355466, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3812598', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1133, 'n_words': 180}