You should NOT change default arg values in Core XF Macros. The default value is default for a valid reason (and is expected to be what XenForo sets the default value to be).
Instead, you should pass the value
summary_large_image
via the
arg-twitterCard
, so that you are only forcing that value when you are including an appropriately sized image, otherwise Twitter will reject it and no image will be displayed as it doesn't conform to their image size standard for their summary large image.
Just like adding the custom image url via the
arg-imageUrl
like you did for for CAS index, you can force the twitter card size via the
arg-twitterCard
as shown below
HTML:
<xf:macro template="metadata_macros" name="metadata"
arg-description="{$xf.options.xaCasMetaDescription}"
arg-canonicalUrl="{{ link('canonical:cas', null, {'page': $page > 1 ? $page : null}) }}"
arg-imageUrl="{{ link('https://forum.travmatik.com/zbroya-rinok.jpg') }}"
arg-twitterCard="summary_large_image" />