Fixed "twitter" BbCodeMediaSite missing in match_urls


Well-known member
Affected version
We're starting to see Twitter links that use instead of posted on our forums, despite the fact that redirects to The "Share" button on tweets now gives an URL. As such, match_urls should be updated to include

Other XF customers also appear to be encountering this issue:

Temporary workaround:
update xf_bb_code_media_site set match_urls = '*/status/{$id}\{$id}\*/status/{$id}\{$id}' where media_site_id = 'twitter';
Since this changes a media site associated with the core XF add-on, it'll be overwritten on the next update. This avoids the need to create a duplicate media site that can never be deleted without breaking existing posts, and it ensures that future updates to the affected media site will be received alongside future XF updates. As long as you're comfortable with SQL, this is arguably a safer workaround without the long-term side effects of manually duplicating the media site.
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.14).

Change log:
Update Twitter BB code media site to support URLs and update some branding to X, rather than Twitter.
There may be a delay before changes are rolled out to the XenForo Community.
Top Bottom