mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Display an error message on edit feed page when the feed URL is not unique
This commit is contained in:
parent
4834e934f2
commit
e2d862f2f6
3 changed files with 7 additions and 3 deletions
|
@ -115,7 +115,7 @@ func (h *handler) updateFeed(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if validationErr := validator.ValidateFeedModification(h.store, userID, &feedModificationRequest); validationErr != nil {
|
||||
if validationErr := validator.ValidateFeedModification(h.store, userID, originalFeed.ID, &feedModificationRequest); validationErr != nil {
|
||||
json.BadRequest(w, r, validationErr.Error())
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue