aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-09 20:29:36 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-09 20:29:36 -0800
commitc4a3487f0cee6391419fd73f2f89f074731a064c (patch)
tree3962c4fb01ae533cae0a452b4b034a5e9c968b4b
parente6de9bfa4ebe1fb1c7dd05c0d572c7d79d3323ee (diff)
downloadvolse-hubzilla-c4a3487f0cee6391419fd73f2f89f074731a064c.tar.gz
volse-hubzilla-c4a3487f0cee6391419fd73f2f89f074731a064c.tar.bz2
volse-hubzilla-c4a3487f0cee6391419fd73f2f89f074731a064c.zip
remove the obsolete avatar_img function (gravatar/libravatar lookup)
-rw-r--r--doc/hook/avatar_lookup.bb1
-rw-r--r--doc/hooklist.bb3
-rw-r--r--include/network.php22
3 files changed, 0 insertions, 26 deletions
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,'<?xml'))