]> git.mxchange.org Git - friendica-addons.git/commitdiff
pumpio: fix for php > 5.3
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 16 Sep 2013 17:28:14 +0000 (19:28 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 16 Sep 2013 17:28:14 +0000 (19:28 +0200)
pumpio/pumpio.php

index d378127a81b545d53e38a0ab57fefef940285e17..fc705e756ed24b5bf876eb4757a828ffbb762fb5 100755 (executable)
@@ -970,13 +970,13 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id) {
        require_once('include/items.php');
 
        if (($post->verb == "like") OR ($post->verb == "favorite"))
-               return pumpio_dolike(&$a, $uid, $self, $post, $own_id);
+               return pumpio_dolike($a, $uid, $self, $post, $own_id);
 
        if (($post->verb == "unlike") OR ($post->verb == "unfavorite"))
-               return pumpio_dounlike(&$a, $uid, $self, $post, $own_id);
+               return pumpio_dounlike($a, $uid, $self, $post, $own_id);
 
        if ($post->verb == "delete")
-               return pumpio_dodelete(&$a, $uid, $self, $post, $own_id);
+               return pumpio_dodelete($a, $uid, $self, $post, $own_id);
 
        if ($post->verb != "update") {
                // Two queries for speed issues
@@ -1068,7 +1068,7 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id) {
                $reply->published = $post->object->inReplyTo->published;
                $reply->received = $post->object->inReplyTo->updated;
                $reply->url = $post->object->inReplyTo->url;
-               pumpio_dopost(&$a, $client, $uid, $self, $reply, $own_id);
+               pumpio_dopost($a, $client, $uid, $self, $reply, $own_id);
 
                $postarray['parent-uri'] = $post->object->inReplyTo->id;
        }
@@ -1220,7 +1220,7 @@ function pumpio_fetchinbox($a, $uid) {
        if (count($posts))
                foreach ($posts as $post) {
                        $last_id = $post->id;
-                       pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id);
+                       pumpio_dopost($a, $client, $uid, $self, $post, $own_id);
                }
 
        set_pconfig($uid,'pumpio','last_id', $last_id);
@@ -1510,7 +1510,7 @@ function pumpio_fetchallcomments($a, $uid, $id) {
                $post->object = $item;
 
                logger("pumpio_fetchallcomments: posting comment ".$post->object->id);
-               pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id);
+               pumpio_dopost($a, $client, $uid, $self, $post, $own_id);
        }
 }