X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Ffollow.php;h=2461bf0356b63ae9fd0ffd2d31f3dbbb89fa2fd3;hb=0ed93df91fcf6cfc1d65ee3e013e4f79eae55ef7;hp=6c998e1781118495242fcc1a67a6bb020601b8e1;hpb=65468bf202ef3188a86fb18cd4ec1d553f78b16d;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 6c998e1781..2461bf0356 100644 --- a/include/follow.php +++ b/include/follow.php @@ -1,5 +1,7 @@ $a->contact['photo'], '$thumb' => $a->contact['thumb'], '$published' => datetime_convert('UTC','UTC', 'now', ATOM_TIME), - '$item_id' => 'urn:X-dfrn:' . $a->get_hostname() . ':follow:' . random_string(), + '$item_id' => 'urn:X-dfrn:' . $a->get_hostname() . ':follow:' . get_guid(32), '$title' => '', '$type' => 'text', '$content' => t('following'), @@ -317,8 +302,8 @@ function new_contact($uid,$url,$interactive = false) { } if($contact['network'] == NETWORK_DIASPORA) { require_once('include/diaspora.php'); - $ret = diaspora_share($a->user,$contact); - logger('mod_follow: diaspora_share returns: ' . $ret); + $ret = diaspora::send_share($a->user,$contact); + logger('share returns: '.$ret); } }