I noticed that when modifying a feed through the web form (e.g., disabling the feed), upon form submission, both the parsing error count and error message of that feed are reset.
However, this reset process doesn't occur when modifying the feed via API.
After examining the relevant code, I found that the reset operation appears to be automatically performed during form processing:
I noticed that when modifying a feed through the web form (e.g., disabling the feed), upon form submission, both the parsing error count and error message of that feed are reset. However, this reset process doesn't occur when modifying the feed via API.
After examining the relevant code, I found that the reset operation appears to be automatically performed during form processing:
https://github.com/miniflux/v2/blob/c3016a4c5554a46a703828ddb46d2047d4abccf6/internal/ui/form/feed.go#L58-L59
This operation is not present in the API modification flow.
I'd like to know if this difference in behavior is intentional or an oversight.
If it's not intentional, perhaps we could synchronize this logic by adding
originalFeed.ResetErrorCounter()
to the API handling code.