diff --git a/config.js b/config.js index 90bbd6410..f180124f2 100644 --- a/config.js +++ b/config.js @@ -69,4 +69,5 @@ var config = { /*noticeMessage: 'Service update is scheduled for 16th March 2015. ' + 'During that time service will not be available. ' + 'Apologise for inconvenience.'*/ + disableThirdPartyRequests: false }; diff --git a/css/contact_list.css b/css/contact_list.css index 4929cc90b..7dab8a523 100644 --- a/css/contact_list.css +++ b/css/contact_list.css @@ -44,6 +44,8 @@ vertical-align: middle; font-size: 22pt; border-radius: 20px; + max-height: 30px; + max-width: 30px; } #contactlist .clickable { diff --git a/index.html b/index.html index 93681fc6d..d66835e1d 100644 --- a/index.html +++ b/index.html @@ -11,11 +11,9 @@ - - @@ -203,7 +201,7 @@
- +
@@ -224,5 +222,18 @@
+ diff --git a/modules/UI/avatar/Avatar.js b/modules/UI/avatar/Avatar.js index 6ab1327e4..4a31d7582 100644 --- a/modules/UI/avatar/Avatar.js +++ b/modules/UI/avatar/Avatar.js @@ -1,4 +1,4 @@ -/* global Strophe, APP, MD5 */ +/* global Strophe, APP, MD5, config */ var Settings = require("../../settings/Settings"); var users = {}; @@ -57,12 +57,16 @@ var Avatar = { "No avatar stored yet for " + jid + " - using JID as ID"); id = jid; } - return 'https://www.gravatar.com/avatar/' + - MD5.hexdigest(id.trim().toLowerCase()) + - "?d=wavatar&size=" + (size || "30"); + if (!config.disableThirdPartyRequests) { + return 'https://www.gravatar.com/avatar/' + + MD5.hexdigest(id.trim().toLowerCase()) + + "?d=wavatar&size=" + (size || "30"); + } else { + return 'images/avatar2.png'; + } } }; -module.exports = Avatar; \ No newline at end of file +module.exports = Avatar;