forked from forgejo/forgejo
Backport #25548 by @Zettat123 This PR - fixes #25545 - fixes two incorrect `reqToken()` in `/notifications` endpoints (caused by #24767) Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
parent
7222bac4e3
commit
77db40e084
3 changed files with 4 additions and 4 deletions
|
@ -132,7 +132,7 @@ func ReadNotifications(ctx *context.APIContext) {
|
|||
if len(qLastRead) > 0 {
|
||||
tmpLastRead, err := time.Parse(time.RFC3339, qLastRead)
|
||||
if err != nil {
|
||||
ctx.InternalServerError(err)
|
||||
ctx.Error(http.StatusBadRequest, "Parse", err)
|
||||
return
|
||||
}
|
||||
if !tmpLastRead.IsZero() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue