Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tapankumar
Copy link

This PR is for #199 bug and as per @BrunoViera request.

@@ -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], "?");

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

@@ -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];

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.

@BrunoViera
Copy link

Thanks @tapankumar !

@jvrdom
Copy link
Contributor

jvrdom commented Oct 30, 2017

@sidkshatriya can you merge this PR?

Thanks!

@BrunoViera
Copy link

Hey @Lullabot, @sebastianbenz, could you merge this PR ?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants