updated category: tracking active participants + removed placeholder; recent author picture now pulled dynamically; graph/users/picture implemented

This commit is contained in:
psychobunny
2013-05-15 15:42:24 -04:00
parent 58aa0ee647
commit 25e218442a
5 changed files with 59 additions and 48 deletions

View File

@@ -211,6 +211,21 @@ var express = require('express'),
res.send(JSON.stringify(post));
});
});
//START TODO: MOVE TO GRAPH.JS
app.get('/graph/users/:username/picture', function(req, res) {
user.get_uid_by_username(req.params.username, function(uid) {
user.getUserField(uid, 'picture', function(picture) {
res.redirect(picture);
});
});
});
//END TODO: MOVE TO GRAPH.JS
}(WebServer));
server.listen(config.port);