mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 22:53:16 +00:00
Merge pull request #622 from MrPetovan/bug/fix-php72-notice-twitter
Bug fix php72 notice twitter
This commit is contained in:
commit
00e32f743c
1 changed files with 2 additions and 3 deletions
|
@ -75,7 +75,6 @@ use Friendica\Model\Contact;
|
||||||
use Friendica\Model\Group;
|
use Friendica\Model\Group;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Model\ItemContent;
|
use Friendica\Model\ItemContent;
|
||||||
use Friendica\Model\Photo;
|
|
||||||
use Friendica\Model\Queue;
|
use Friendica\Model\Queue;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
use Friendica\Object\Image;
|
use Friendica\Object\Image;
|
||||||
|
@ -1562,7 +1561,7 @@ function twitter_checknotification(App $a, $uid, $own_id, $top_item, $postarray)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function twitter_fetchparentposts(App $a, $uid, $post, $connection, $self, $own_id)
|
function twitter_fetchparentposts(App $a, $uid, $post, TwitterOAuth $connection, $self, $own_id)
|
||||||
{
|
{
|
||||||
logger("twitter_fetchparentposts: Fetching for user " . $uid . " and post " . $post->id_str, LOGGER_DEBUG);
|
logger("twitter_fetchparentposts: Fetching for user " . $uid . " and post " . $post->id_str, LOGGER_DEBUG);
|
||||||
|
|
||||||
|
@ -1578,7 +1577,7 @@ function twitter_fetchparentposts(App $a, $uid, $post, $connection, $self, $own_
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!count($post)) {
|
if (empty($post)) {
|
||||||
logger("twitter_fetchparentposts: Can't fetch post " . $parameters->id, LOGGER_DEBUG);
|
logger("twitter_fetchparentposts: Can't fetch post " . $parameters->id, LOGGER_DEBUG);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue