Skip to content

Commit

Permalink
Remove erro message for incorrect forum url in request
Browse files Browse the repository at this point in the history
  • Loading branch information
iAdramelk committed Dec 4, 2019
1 parent 1b395f9 commit 2d3dbfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getCommentCount = (req, res) => {
} = req

if (!url.startsWith(FORUM_URL)) {
res.status(404).json({ error: `URL should starts with '${FORUM_URL}'` })
res.status(400)

return
}
Expand Down

0 comments on commit 2d3dbfd

Please sign in to comment.