X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=1c33edf80ecdf6a62f6fc253ade0223dd68f557d;hb=d49325d177cf03b97df250ca3cb081421c541049;hp=6c998e1781118495242fcc1a67a6bb020601b8e1;hpb=1efda90498b9594a9ab96997f318e6f35b627601;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 6c998e1781..1c33edf80e 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); } }