]> git.mxchange.org Git - friendica-addons.git/blobdiff - pumpio/pumpio.php
pumpio: prevent a warning message because of a missing parameter
[friendica-addons.git] / pumpio / pumpio.php
index 936f0c141fdd495a19e69f72c5ef0ba9f281ecb1..55d0433a1b4295e3060da314c3be365f52e768d1 100644 (file)
@@ -521,7 +521,7 @@ function pumpio_send(&$a,&$b) {
        }
 }
 
-function pumpio_action(&$a, $uid, $uri, $action, $content) {
+function pumpio_action(&$a, $uid, $uri, $action, $content = "") {
 
        // Don't do likes and other stuff if you don't import the timeline
        if (!get_pconfig($uid,'pumpio','import'))
@@ -1243,8 +1243,7 @@ function pumpio_dopost(&$a, $client, $uid, $self, $post, $own_id, $threadcomplet
                                        'to_email'     => $user[0]['email'],
                                        'uid'          => $user[0]['uid'],
                                        'item'         => $postarray,
-                                       //'link'             => $a->get_baseurl() . '/display/' . $user[0]['nickname'] . '/' . $top_item,
-                                       'link'         => $a->get_baseurl().'/display/'.get_item_guid($top_item),
+                                       'link'         => $a->get_baseurl().'/display/'.urlencode(get_item_guid($top_item)),
                                        'source_name'  => $postarray['author-name'],
                                        'source_link'  => $postarray['author-link'],
                                        'source_photo' => $postarray['author-avatar'],