-
{posts.content}
-
-
-
-
-
- {posts.post_rep}
- Reply
-
-
posted by
{posts.username} {posts.relativeTime} ago
-
| last edited by {posts.editor} {posts.relativeEditTime} ago
-
+
+
+
+
+
+
+
100
+
+
+
+
This is the main post blah blah
+
+
+
+
+
+ 50
+ Reply
+
+
posted by
psychobunny 1 hour ago
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
{posts.user_rep}
+
+
+
+
{posts.content}
+
+
+
+
+
+ {posts.post_rep}
+ Reply
+
+
posted by
{posts.username} {posts.relativeTime} ago
+
| last edited by {posts.editor} {posts.relativeEditTime} ago
+
+
+
+
+
+
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);
});
});