diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2012-02-21 00:54:34 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2012-04-09 21:22:09 +0200 |
commit | 93ffba58cc10fc793821ba16de88cdfb271ea5b8 (patch) | |
tree | a80a9f63781eaeb92eb8949e164d7a7659b33d61 /include/Scrape.php | |
parent | d25a9df99600b0ce204d88114f07f5ed1db9d5d3 (diff) | |
download | volse-hubzilla-93ffba58cc10fc793821ba16de88cdfb271ea5b8.tar.gz volse-hubzilla-93ffba58cc10fc793821ba16de88cdfb271ea5b8.tar.bz2 volse-hubzilla-93ffba58cc10fc793821ba16de88cdfb271ea5b8.zip |
Rename gravatar_img() more generic to avatar_img().
I would like to extend the Gravatar support to also use Libravatar, a decentralized avatar service.
First step to extract Gravatar from core and put it into its own plugin. Later the Libravatar plugin can be done, too as a plugin.
Diffstat (limited to 'include/Scrape.php')
-rw-r--r-- | include/Scrape.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Scrape.php b/include/Scrape.php index 9c237916b..141c90dcf 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -446,7 +446,7 @@ function probe_url($url, $mode = PROBE_NORMAL) { $phost = substr($url,strpos($url,'@')+1); $profile = 'http://' . $phost; // fix nick character range - $vcard = array('fn' => $name, 'nick' => $name, 'photo' => gravatar_img($url)); + $vcard = array('fn' => $name, 'nick' => $name, 'photo' => avatar_img($url)); $notify = 'smtp ' . random_string(); $poll = 'email ' . random_string(); $priority = 0; @@ -655,7 +655,7 @@ function probe_url($url, $mode = PROBE_NORMAL) { } if((! $vcard['photo']) && strlen($email)) - $vcard['photo'] = gravatar_img($email); + $vcard['photo'] = avatar_img($email); if($poll === $profile) $lnk = $feed->get_permalink(); if(isset($lnk) && strlen($lnk)) |