remove the obsolete avatar_img function (gravatar/libravatar lookup)

This commit is contained in:
redmatrix 2015-11-09 20:29:36 -08:00
parent e6de9bfa4e
commit c4a3487f0c
3 changed files with 0 additions and 26 deletions

View File

@ -1 +0,0 @@
[h2]avatar_lookup[/h2]

View File

@ -58,9 +58,6 @@ Hooks allow plugins/addons to "hook into" the code at many points and alter the
[zrl=[baseurl]/help/hook/authenticate]authenticate[/zrl]
Can provide alternate authentication mechanisms
[zrl=[baseurl]/help/hook/avatar_lookup]avatar_lookup[/zrl]
Used for "gravatar" or libravatar profile photo lookup.
[zrl=[baseurl]/help/hook/bb2diaspora]bb2diaspora[/zrl]
called when converting bbcode to markdown

View File

@ -526,28 +526,6 @@ function allowed_email($email) {
function avatar_img($email) {
$avatar = array();
$a = get_app();
$avatar['size'] = 300;
$avatar['email'] = $email;
$avatar['url'] = '';
$avatar['success'] = false;
call_hooks('avatar_lookup', $avatar);
if (! $avatar['success'])
$avatar['url'] = $a->get_baseurl() . '/' . get_default_profile_photo();
logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url'], LOGGER_DEBUG);
return $avatar['url'];
}
function parse_xml_string($s,$strict = true) {
if($strict) {
if(! strstr($s,'<?xml'))