diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index d5e2121da5..2580373409 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -8,34 +8,60 @@
diff --git a/src/webserver.js b/src/webserver.js index fd75894fca..3de6acdc98 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -218,7 +218,12 @@ var express = require('express'), app.get('/graph/users/:username/picture', function(req, res) { user.get_uid_by_username(req.params.username, function(uid) { + if (uid == null) { + res.send('{status:0}'); + return; + } user.getUserField(uid, 'picture', function(picture) { + if (picture == null) res.redirect('http://www.gravatar.com/avatar/a938b82215dfc96c4cabeb6906e5f953'); res.redirect(picture); }); });