1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix bug with globally disabling mirror (#11760)

Ensure we return after `ctx.Error(...)`
This commit is contained in:
6543
2020-06-04 20:06:24 +02:00
committed by GitHub
parent 0cb22121f4
commit 2c5b3c72e8
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,8 @@
package misc
import (
"net/http"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/setting"
)
@@ -19,5 +21,5 @@ func SettingGetsAllowedReactions(ctx *context.APIContext) {
// responses:
// "200":
// "$ref": "#/responses/StringSlice"
ctx.JSON(200, setting.UI.Reactions)
ctx.JSON(http.StatusOK, setting.UI.Reactions)
}