tpl/tplimpl: Deprecate twitter shortcode in favor of x shortcode

Closes #13214
This commit is contained in:
Joe Mooring
2025-01-05 05:31:58 -08:00
committed by Bjørn Erik Pedersen
parent 60c24fc5ee
commit 1191467c05
12 changed files with 317 additions and 14 deletions

View File

@@ -66,6 +66,8 @@ const (
// We need this to identify position in templates with base templates applied.
var identifiersRe = regexp.MustCompile(`at \<(.*?)(\.{3})?\>:`)
// The tweet and twitter shortcodes were deprecated in favor of the x shortcode
// in v0.141.0. We can remove these aliases in v0.155.0 or later.
var embeddedTemplatesAliases = map[string][]string{
"shortcodes/twitter.html": {"shortcodes/tweet.html"},
}