X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=2461bf0356b63ae9fd0ffd2d31f3dbbb89fa2fd3;hb=57cadf5b8f5d5c45f1931607c22145647ca52f36;hp=79666f30dc92cae709bd5e5c5f0f443820a64a38;hpb=f48f7394e9a56f2f54159d4269c9c1b4bffa06c9;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 79666f30dc..2461bf0356 100644 --- a/include/follow.php +++ b/include/follow.php @@ -1,4 +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'), @@ -316,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); } }