Skip to content

Commit

Permalink
fix(RSS): use temporary site_url
Browse files Browse the repository at this point in the history
Closes #74
  • Loading branch information
g-div committed Jun 7, 2018
1 parent 76fd6c0 commit 453d33d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ function run(db) {

// rss feed of comments in need of moderation
app.get('/feed', (request, reply) => {
const user = getUser(request);
if (!isAdmin(user)) return reply.status(403).send({error: 'Forbidden'});
var feed = new RSS({
title: 'Awaiting moderation',
site_url: config.allow_origin[0] // @FIXME
site_url: config.get('schnack_host')
});
db.each(queries.awaiting_moderation, (err, row) => {
if (err) console.error(err.message);
Expand Down

0 comments on commit 453d33d

Please sign in to comment.