aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-31 16:03:41 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-31 16:04:48 -1000
commit95a25a44b6a1b9f4124030a0c4ec658f63f3e307 (patch)
treebc5318e83fa9ba47a7de7d0c644cbc34154b946e
parent59b921ee52497f2d94c9693a8f4a31eeb5bdbc46 (diff)
downloadpatchfoo-95a25a44b6a1b9f4124030a0c4ec658f63f3e307.tar.gz
patchfoo-95a25a44b6a1b9f4124030a0c4ec658f63f3e307.zip
Fix variable scope
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
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,