- πΊπ¦Ukraine shalimanov
sstanislav β made their first commit to this issueβs fork.
In cases where a hashtag or other query is used instead of a username query, the Tweet user is saved as the query, even though the username is present in the retrieved tweet. Patch attached saves the username instead.
Changed these two rows from GetTweetsBase.php
file
- 'uri' => $tweet_type == 'statuses/user_timeline' ? 'https://twitter.com/' . $tweet->user->screen_name : 'https://twitter.com/search?q=' . str_replace('#', '%23', $query_name),
- 'title' => $tweet_type == 'statuses/user_timeline' ? $tweet->user->screen_name : $query_name,
+ 'uri' => isset($tweet->user, $tweet->user->screen_name) ? 'https://twitter.com/' . $tweet->user->screen_name : 'https://twitter.com/search?q=' . str_replace('#', '%23', $query_name),
+ 'title' => isset($tweet->user, $tweet->user->screen_name) ? $tweet->user->screen_name : $query_name,
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
sstanislav β made their first commit to this issueβs fork.