mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
4ceb72d208
2 changed files with 11 additions and 8 deletions
|
@ -1243,13 +1243,16 @@ function pumpio_fetchinbox(&$a, $uid) {
|
|||
$url .= '?since='.urlencode($last_id);
|
||||
|
||||
$success = $client->CallAPI($url, 'GET', array(), array('FailOnAccessError'=>true), $user);
|
||||
$posts = array_reverse($user->items);
|
||||
|
||||
if (count($posts))
|
||||
foreach ($posts as $post) {
|
||||
$last_id = $post->id;
|
||||
pumpio_dopost($a, $client, $uid, $self, $post, $own_id);
|
||||
}
|
||||
if ($user->items) {
|
||||
$posts = array_reverse($user->items);
|
||||
|
||||
if (count($posts))
|
||||
foreach ($posts as $post) {
|
||||
$last_id = $post->id;
|
||||
pumpio_dopost($a, $client, $uid, $self, $post, $own_id);
|
||||
}
|
||||
}
|
||||
|
||||
set_pconfig($uid,'pumpio','last_id', $last_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue