Commit c5a95cc1ebe6dd3a4d572220f5cd60c31381de97
Fix publishVote without previewVotes
cel committed on 12/26/2017, 8:40:55 PMParent: 399d0a666d1f8d2956c81279a98bed3c483dea51
Files changed
lib/serve.js | changed |
lib/serve.js | |||
---|---|---|---|
@@ -174,9 +174,9 @@ | |||
174 | 174 … | } | |
175 | 175 … | this.publish(content, cb) | |
176 | 176 … | } | |
177 | 177 … | ||
178 | -Serve.prototype.publishVote = function () { | ||
178 … | +Serve.prototype.publishVote = function (next) { | ||
179 | 179 … | var content = { | |
180 | 180 … | type: 'vote', | |
181 | 181 … | channel: this.data.channel || undefined, | |
182 | 182 … | vote: { | |
@@ -191,9 +191,9 @@ | |||
191 | 191 … | var q = qs.stringify({text: json, action: 'preview'}) | |
192 | 192 … | var url = this.app.render.toUrl('/compose?' + q) | |
193 | 193 … | this.redirect(url) | |
194 | 194 … | } else { | |
195 | - this.publish(content, cb) | ||
195 … | + this.publish(content, next) | ||
196 | 196 … | } | |
197 | 197 … | } | |
198 | 198 … | ||
199 | 199 … | Serve.prototype.publishContact = function (cb) { |
Built with git-ssb-web