diff --git a/src/Pass/TwitterTransformPass.php b/src/Pass/TwitterTransformPass.php index e586bdcd..7e88ba9a 100644 --- a/src/Pass/TwitterTransformPass.php +++ b/src/Pass/TwitterTransformPass.php @@ -142,7 +142,7 @@ protected function getTweetId(DOMQuery $el) $matches = []; if (preg_match('&(*UTF8)twitter.com/.*/status(?:es)?/([^/]+)&i', $href, $matches)) { if (!empty($matches[1])) { - $tweet_id = $matches[1]; + $tweet_id = strtok($matches[1], "?"); break; } }