X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=appnet%2Fappnet.php;h=a8335d7bfeb4533ae5325c8a620e286c17963f22;hb=3ec6970d09270ebe57f75fc7295d38b8df1f5675;hp=3a6046b3646b91a741d7e5641569c15a3f3ea96e;hpb=087871cd8d27ce6ea1472db0e0da5e84f47ec5bf;p=friendica-addons.git diff --git a/appnet/appnet.php b/appnet/appnet.php index 3a6046b3..a8335d7b 100644 --- a/appnet/appnet.php +++ b/appnet/appnet.php @@ -716,8 +716,7 @@ function appnet_fetchstream($a, $uid) { 'to_email' => $user['email'], 'uid' => $user['uid'], 'item' => $postarray, - //'link' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $item, - 'link' => $a->get_baseurl().'/display/'.get_item_guid($item), + 'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($item)), 'source_name' => $postarray['author-name'], 'source_link' => $postarray['author-link'], 'source_photo' => $postarray['author-avatar'], @@ -761,7 +760,8 @@ function appnet_fetchstream($a, $uid) { $lastid = $post["id"]; - if (($item != 0) AND ($postarray['contact-id'] != $me["id"])) { + //if (($item != 0) AND ($postarray['contact-id'] != $me["id"])) { + if ($item != 0) { require_once('include/enotify.php'); notification(array( 'type' => NOTIFY_TAGSELF, @@ -771,8 +771,7 @@ function appnet_fetchstream($a, $uid) { 'to_email' => $user['email'], 'uid' => $user['uid'], 'item' => $postarray, - //'link' => $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $item, - 'link' => $a->get_baseurl().'/display/'.get_item_guid($item), + 'link' => $a->get_baseurl().'/display/'.urlencode(get_item_guid($item)), 'source_name' => $postarray['author-name'], 'source_link' => $postarray['author-link'], 'source_photo' => $postarray['author-avatar'],