diff --git a/libertree/libertree.php b/libertree/libertree.php index c618fd8c..2809adee 100755 --- a/libertree/libertree.php +++ b/libertree/libertree.php @@ -153,8 +153,8 @@ function libertree_send(&$a,&$b) { $ltree_api_token = get_pconfig($b['uid'],'libertree','libertree_api_token'); $ltree_url = get_pconfig($b['uid'],'libertree','libertree_url'); $ltree_blog = "$ltree_url/api/v1/posts/create/?token=$ltree_api_token"; - $ltree_source = "Friendica"; - //$ltree_source = "[".$a->config['sitename']."](".$a->get_baseurl().")"; + //$ltree_source = "Friendica"; + $ltree_source = "[".$a->config['sitename']."](".$a->get_baseurl().")"; if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) { require_once('include/bb2diaspora.php'); diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index f697b227..7300b388 100755 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1230,13 +1230,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); }