In v0.141.0 (16 Jan 2025) we deprecated the twitter shortcodes and related configuration settings in favor of their x equivalents. See #13214.
In the next minor release, v0.156.0, we will begin throwing errors and fail the build if any of the twitter config settings are enabled:
ERROR deprecated: site config key privacy.twitter.enableDNT was deprecated in Hugo v0.141.0 and subsequently removed. Use privacy.x.enableDNT instead.
We also need to fail the build if the twitter shortcodes are called.