Jump to content

Twitter vs X - oembed url


Nathan Explosion

Recommended Posts

Spotted that there are some x.com/ URLs now appearing for the normal tweet links - as a result, oembed will fail and they'll be links.

'twitter.com' => array( 'https://publish.twitter.com/oembed', static::EMBED_TWEET ),
'mobile.twitter.com' => array( 'https://publish.twitter.com/oembed', static::EMBED_TWEET ),

Tested and adding x.com equivalents of the above to oembedServices in \IPS\Text\Parser will sort it out.

'x.com' => array( 'https://publish.x.com/oembed', static::EMBED_TWEET ),
'x.twitter.com' => array( 'https://publish.x.com/oembed', static::EMBED_TWEET ),

 

Link to comment
Share on other sites

  • 2 weeks later...
On 8/26/2023 at 12:45 PM, marklcfc said:

Is there any fix for this until the 4.7.13 is released proper? (assume its fixed in that?)

Happy to edit a file but need to know the changes to make, having so many x.com links being posted

The fix if you want it before 4.7.13 is released 'proper', would be 4.7.13 beta 

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...