Confirmed Broken Description for XFMG Albums (XFMG 2.3.113)

Kevin

Well-known member
Licensed customer
Affected version
2.3.13
What: When viewing an XFMG personal album the meta tags for description, og:description, and twitter:description are missing.

Example: View the source page of https://xenforo.com/community/media/albums/the-box.652/ (at least as of the time of this thread being created)

Why: In the template xfmg_album_view description is being set to <xf:set var="$descSnippet" value="{{ snippet($mediaItem.description, 250) }}" /> instead of <xf:set var="$descSnippet" value="{{ snippet($album.description, 250) }}" /> -- $mediaItem is not set so it results in no value being passed to metadata_macros resulting in the missing meta tags.

Solution: Changing it from $mediaItem to $album fixes it.
 
Back
Top Bottom