Stillat / meerkat-statamic3

Meerkat 2 is an extremely powerful and easy-to-use comment platform for Statamic 3.
https://meerkatcomments.com/
Other
5 stars 3 forks source link

Recursive comments in Meerkat 3 are empty #227

Closed Eworm closed 11 months ago

Eworm commented 1 year ago

This is my code:

{{ meerkat:responses }}

    <ol class="comments">

        {{ comments }}

            <li class="comment comment-order-{{ index }}">

                <div class="comment__header">

                    <cite class="fn">
                        {{ author.name }}
                    </cite>

                    {{ date }}

                </div>

                <div class="comment__body">

                    <img class="comment__avatar" src="{{ meerkat:gravatar email="{email}" }}" loading="lazy">

                    <div>
                        <p>{{ content }}</p>
                    </div>

                    <a href="#" data-meerkat-form="reply" data-meerkat-reply-to="{{ id }}">Reply</a>

                </div>

                {{ if has_replies }}

                    {{ *recursive comments* }}

                {{ /if }}

            </li>

        {{ /comments }}

    </ol>

{{ /meerkat:responses }}

There is an empty <ol class="comments"> in my html, but no replies.

JohnathonKoster commented 1 year ago

Thanks for the report!

What version of Statamic and Antlers (config/statamic/antlers.php) are you running? Thanks!

Eworm commented 1 year ago

Statamic is 3.4.4, antlers version is runtime.

JohnathonKoster commented 1 year ago

Thanks! Will check it out and let you know what I find

JohnathonKoster commented 1 year ago

Will be resolved by https://github.com/statamic/cms/pull/8421

JohnathonKoster commented 11 months ago

Resolved with Meerkat for Statamic for, as of Statamic 4.13.0