From c4a3487f0cee6391419fd73f2f89f074731a064c Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 9 Nov 2015 20:29:36 -0800 Subject: remove the obsolete avatar_img function (gravatar/libravatar lookup) --- doc/hook/avatar_lookup.bb | 1 - doc/hooklist.bb | 3 --- include/network.php | 22 ---------------------- 3 files changed, 26 deletions(-) delete mode 100644 doc/hook/avatar_lookup.bb diff --git a/doc/hook/avatar_lookup.bb b/doc/hook/avatar_lookup.bb deleted file mode 100644 index abd84de5e..000000000 --- a/doc/hook/avatar_lookup.bb +++ /dev/null @@ -1 +0,0 @@ -[h2]avatar_lookup[/h2] diff --git a/doc/hooklist.bb b/doc/hooklist.bb index 0b9cc17ee..2285ef1cf 100644 --- a/doc/hooklist.bb +++ b/doc/hooklist.bb @@ -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 diff --git a/include/network.php b/include/network.php index c67c019ef..65599bd05 100644 --- a/include/network.php +++ b/include/network.php @@ -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,'