Skip to content

Commit

Permalink
删除评论接口的隐私信息
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Oct 15, 2017
1 parent f5b4a83 commit 18c3b2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion route/api/comment.js
Expand Up @@ -9,7 +9,9 @@ router.get('/article/:id(\\w{24})', async function (req, res) {
const {page = 1} = req.query
const {id: articleId} = req.params

const list = await CommentService.listByArticle(articleId, page)
let list = await CommentService.listByArticle(articleId, page)

list = list.map((e) => e.toJSON())

removeEmail(list)

Expand Down

0 comments on commit 18c3b2f

Please sign in to comment.