···2222import gleam/bool
2323import gleam/dict
2424import gleam/erlang/process
2525-import gleam/float
2625import gleam/http
2726import gleam/http/request
2827import gleam/http/response
···405404406405 // if we've failed to fetch the feed too many times
407406 // stop fetching for this feed, until it gets started again
408408- case state.feed.repeated_failures {
409409- failures if failures > 10 -> failed_too_often(state)
410410- _ -> {
407407+ case state.feed |> rss.is_fetching_paused() {
408408+ True -> failed_too_often(state)
409409+ False -> {
411410 let reset_timer_and_continue = fn(state: State) {
412411 // cancel old timer in case we received another CheckFeeds message that wasnt sent by the timer
413412 // from the Ui for example
···481480 woof.field("feed-url", state.feed.link |> uri.to_string()),
482481 woof.field("feed-id", state.feed.id |> uuid.to_string()),
483482 woof.int_field("feed-failures", state.feed.repeated_failures),
484484- woof.bool_field("failure-too-high", state.feed.repeated_failures > 10),
485483 ])
486484487485 // tell the senders so they can message subscribed users about it