remove extraneous logs

This commit is contained in:
Darius Kazemi 2018-10-15 11:56:59 -07:00
parent 90ad278588
commit 8678d24707

View File

@ -21,7 +21,6 @@ router.get('/:name', function (req, res) {
else { else {
let actor = JSON.parse(result.actor); let actor = JSON.parse(result.actor);
let username = name.replace('@'+domain,''); let username = name.replace('@'+domain,'');
console.log(username, actor);
let content = db.prepare('select content from feeds where username = ?').get(username); let content = db.prepare('select content from feeds where username = ?').get(username);
if (content === undefined) { if (content === undefined) {
return res.status(404).json(`Something went very wrong!`); return res.status(404).json(`Something went very wrong!`);
@ -32,7 +31,6 @@ router.get('/:name', function (req, res) {
if (actor.icon && actor.icon.url) { if (actor.icon && actor.icon.url) {
imageUrl = actor.icon.url; imageUrl = actor.icon.url;
} }
console.log(actor, imageUrl);
res.render('user', { displayName: actor.name, items: feedData.items, accountName: '@'+name, imageUrl: imageUrl }); res.render('user', { displayName: actor.name, items: feedData.items, accountName: '@'+name, imageUrl: imageUrl });
} }
} }