git ssb

30+

cel / git-ssb-web



Commit 92589aebf8f4f4f91d38ee6062b424ed041c7f34

Use issue-edit instead of empty post

cel committed on 4/30/2020, 8:32:08 PM
Parent: f8499163d96b13b7fbb2df2ec901dc5c88ad2013

Files changed

index.jschanged
index.jsView
@@ -352,9 +352,11 @@
352352 case 'comment':
353353 if (!data.id)
354354 return cb(null, self.serveError(req,
355355 new ParamError(req._t('error.MissingId')), 400))
356- var msg = schemas.post(data.text, data.id, data.branch || data.id)
356 + var msg = data.text
357 + ? schemas.post(data.text, data.id, data.branch || data.id)
358 + : {type: 'issue-edit'}
357359 msg.issue = data.issue
358360 msg.repo = data.repo
359361 if (data.open != null)
360362 Issues.schemas.reopens(msg, data.id)

Built with git-ssb-web