Skip to content

Commit

Permalink
issue: response wrong type of comment from AJAX
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Apr 4, 2017
1 parent 76ebdb2 commit 348c75c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routers/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
})
}

Expand Down Expand Up @@ -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())),
})
}

Expand Down

0 comments on commit 348c75c

Please sign in to comment.