From e8d7ed0af72913874080a19309134a557729dc00 Mon Sep 17 00:00:00 2001 From: jurasky Date: Mon, 3 Jun 2024 09:43:10 -0700 Subject: [PATCH] Lookup x.com urls using publish.twitter.com Add x.com url matching to still be run through publish.twitter.com/oembed --- src/resources/oembed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/resources/oembed.php b/src/resources/oembed.php index 5f39c9f9..fdc873a3 100644 --- a/src/resources/oembed.php +++ b/src/resources/oembed.php @@ -984,6 +984,9 @@ '|^https?://twitter\\.com/.*$|i', '|^https?://twitter\\.com/.*/status/.*$|i', '|^https?://.*\\.twitter\\.com/.*/status/.*$|i', + '|^https?://x\\.com/.*$|i', + '|^https?://x\\.com/.*/status/.*$|i', + '|^https?://.*\\.x\\.com/.*/status/.*$|i', ], 'https://play.typecast.ai/oembed' => [ '|^https?://play\\.typecast\\.ai/s/.*$|i',