Fixed Moderation status icon is shown 3 times for article preview

Kirby

Well-known member
Affected version
2.3.4
post_article_macros::article_preview

Code:
<xf:if is="$thread.discussion_state == 'moderated'">
    <xf:fa icon="fa-shield" class="structItem-status--moderated" aria-hidden="true" title="{{ phrase('awaiting_approval')|for_attr }}" />

[...]

<div class="articlePreview-links">
    <ul class="articlePreview-statuses">
    [...]

        <xf:extension id="status_state">
            <xf:if is="$thread.discussion_state == 'moderated'">
                <li>
                    <i class="structItem-status structItem-status--moderated" aria-hidden="true" title="{{ phrase('awaiting_approval')|for_attr }}"></i>

together with structured_list.less

Code:
.structItem-status
{
    &--moderated::before { .m-faContent(@fa-var-shield, 1em); color: @xf-textColorAttention; }
the moderation icon is shown 3 times which seems a bit too much; IMHO showing the icon once would be sufficient.

1731520963738.webp
 
Last edited:
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.5).

Change log:
Fix duplicate moderated icon in article preview thread titles
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom