forked from forgejo/forgejo
Fix bugs related to notification endpoints (#25548)
This commit is contained in:
parent
fdab4e3d84
commit
defd807073
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