From 95a25a44b6a1b9f4124030a0c4ec658f63f3e307 Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 31 May 2017 16:03:41 -1000 Subject: Fix variable scope --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serve.js b/lib/serve.js index 9d6f0b8..98a34e0 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1922,6 +1922,7 @@ Serve.prototype.composer = function (opts, cb) { var self = this opts = opts || {} var data = self.data + var myId = self.app.sbot.id var blobs = u.tryDecodeJSON(data.blobs) || {} if (data.upload && typeof data.upload === 'object') { @@ -2151,7 +2152,6 @@ Serve.prototype.composer = function (opts, cb) { function gotContent(err, content) { if (err) return cb(err) contentInput.value = JSON.stringify(content) - var myId = self.app.sbot.id var msg = { value: { author: myId, -- cgit v1.2.3