Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This code is just asking for trouble:
$user = $item->user;
if (variable_get('twitter_pull_retweet_user', TRUE) && !empty($item->retweeted_status)) {
$user = $item->retweeted_status->user;
}
// when importing lists $user is an array and not an object, secure $user as object.
$user = (object) $user;
Comments
Comment #1
tirdadc CreditAttribution: tirdadc commentedIt definitely was. Fixed.
http://drupalcode.org/project/twitter_pull.git/commitdiff/46b6f89