-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twitter execute script from bug fix #201
base: main
Are you sure you want to change the base?
Conversation
src/Pass/TwitterTransformPass.php
Outdated
@@ -142,7 +142,8 @@ 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 = $matches[1]; | |||
$tweet_id = strtok($matches[1], "?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please take care with the indentation
src/Pass/TwitterTransformPass.php
Outdated
@@ -142,7 +142,8 @@ 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 = $matches[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can delete this comment line.
Thanks @tapankumar ! |
@sidkshatriya can you merge this PR? Thanks! |
Hey @Lullabot, @sebastianbenz, could you merge this PR ? Thanks! |
This PR is for #199 bug and as per @BrunoViera request.