bug: evergreen re-shares use incomplete template rendering -- missing placeholders #231
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
QueueProcessor::renderEvergreenMessage()has its own template rendering implementation that duplicatesCrossPostDispatcher::renderTemplate()but is missing several placeholders that were added later:Missing from evergreen rendering:
{social}-- platform-optimized social text{short}-- short-form text for Twitter/Bluesky{chat}-- chat platform text{email_subject}-- email subject line{email_body}-- email body{url_raw}-- clean URL without UTM{url_short}-- shortened URL via Bitly/Rebrandly/YOURLS{platform}-- service type token (for UTM){random:...}-- caption rotationAlso missing:
#__mokosuitecross_templates-- only uses the component-level default templateFix
renderEvergreenMessage()should callCrossPostDispatcher::buildArticleMeta()andCrossPostDispatcher::renderTemplate()instead of duplicating the logic. This would automatically get all current and future placeholders.Impact
source/packages/com_mokosuitecross/src/Helper/QueueProcessor.phprenderEvergreenMessage()(lines 488-575)Branch created:
feature/231-bug-evergreen-re-shares-use-incomplete-t