aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-03 20:06:15 -0400
committerUnknwon <u@gogs.io>2017-04-03 20:06:15 -0400
commit348c75c91b95ce7fb0f6dac263aa7290f2319e1b (patch)
treee4b616f3398f00d24fb04be87348278c9ca71970 /routers/repo/issue.go
parent76ebdb265b6038aa74f1af4304866a3874844900 (diff)
issue: response wrong type of comment from AJAX
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 337e4948..8ab7c707 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -725,8 +725,8 @@ func UpdateIssueContent(ctx *context.Context) {
return
}
- ctx.JSON(200, map[string]interface{}{
- "content": markup.Markdown(issue.Content, ctx.Query("context"), ctx.Repo.Repository.ComposeMetas()),
+ ctx.JSON(200, map[string]string{
+ "content": string(markup.Markdown(issue.Content, ctx.Query("context"), ctx.Repo.Repository.ComposeMetas())),
})
}
@@ -936,8 +936,8 @@ func UpdateCommentContent(ctx *context.Context) {
return
}
- ctx.JSON(200, map[string]interface{}{
- "content": markup.Markdown(comment.Content, ctx.Query("context"), ctx.Repo.Repository.ComposeMetas()),
+ ctx.JSON(200, map[string]string{
+ "content": string(markup.Markdown(comment.Content, ctx.Query("context"), ctx.Repo.Repository.ComposeMetas())),
})
}