Check
This commit is contained in:
parent
0afe2f5239
commit
1531742890
@ -44,6 +44,11 @@ func WhitelabelPost(ctx *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if bot.Id == 0 {
|
||||||
|
ctx.JSON(400, utils.ErrorStr("Invalid token"))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if !bot.Bot {
|
if !bot.Bot {
|
||||||
ctx.JSON(400, utils.ErrorStr("Token is not of a bot user"))
|
ctx.JSON(400, utils.ErrorStr("Token is not of a bot user"))
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user