Commit 92589aebf8f4f4f91d38ee6062b424ed041c7f34
Use issue-edit instead of empty post
cel committed on 4/30/2020, 8:32:08 PMParent: f8499163d96b13b7fbb2df2ec901dc5c88ad2013
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -352,9 +352,11 @@ | ||
352 | 352 … | case 'comment': |
353 | 353 … | if (!data.id) |
354 | 354 … | return cb(null, self.serveError(req, |
355 | 355 … | 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'} | |
357 | 359 … | msg.issue = data.issue |
358 | 360 … | msg.repo = data.repo |
359 | 361 … | if (data.open != null) |
360 | 362 … | Issues.schemas.reopens(msg, data.id) |
Built with git-ssb-web