git ssb

16+

cel / patchfoo



Commit c5a95cc1ebe6dd3a4d572220f5cd60c31381de97

Fix publishVote without previewVotes

cel committed on 12/26/2017, 8:40:55 PM
Parent: 399d0a666d1f8d2956c81279a98bed3c483dea51

Files changed

lib/serve.jschanged
lib/serve.jsView
@@ -174,9 +174,9 @@
174174 }
175175 this.publish(content, cb)
176176 }
177177
178-Serve.prototype.publishVote = function () {
178 +Serve.prototype.publishVote = function (next) {
179179 var content = {
180180 type: 'vote',
181181 channel: this.data.channel || undefined,
182182 vote: {
@@ -191,9 +191,9 @@
191191 var q = qs.stringify({text: json, action: 'preview'})
192192 var url = this.app.render.toUrl('/compose?' + q)
193193 this.redirect(url)
194194 } else {
195- this.publish(content, cb)
195 + this.publish(content, next)
196196 }
197197 }
198198
199199 Serve.prototype.publishContact = function (cb) {

Built with git-ssb-web