From 92f236245272c8c0ccbde57f5f406d13f8ade439 Mon Sep 17 00:00:00 2001 From: Aron Carroll Date: Thu, 3 May 2012 20:57:05 +0100 Subject: [PATCH] Allow automatic updates --- lib/handlers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/handlers.js b/lib/handlers.js index 30ab6848..39602b80 100644 --- a/lib/handlers.js +++ b/lib/handlers.js @@ -161,8 +161,8 @@ module.exports = handlers = { html: editPermalink, js: editPermalink, title: utils.titleForBin(bin), - allowUpdate: false, - checksum: req.streamingKey + allowUpdate: !!bin.streamingKey, + checksum: bin.streamingKey }); } else { res.redirect(303, req.helpers.url(bin.url + '/' + bin.revision + '/edit'));