Fixed Macro public:bookmark_macros:row assumes provided content entity always has User relation

TickTackk

Well-known member
Affected version
2.1
^ title

HTML:
        <xf:if is="$bookmark.has_custom_icon">
            {$bookmark.renderCustomIcon()|raw}
        <xf:else />
            <div class="contentRow-figure contentRow-figure--fixedBookmarkIcon">
                <xf:avatar user="$bookmark.content_user" href="" size="s" defaultname="{{ phrase('deleted_member') }}"/>
            </div>
        </xf:if>
 
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.3).

Change log:
When rendering bookmark list items, use the built in `content_user` getter to check if a user value exists to render their avatar.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Top Bottom