summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 2d1d88ce..a5fc3658 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -2321,7 +2321,8 @@ get "/feed/webhook/:token" do |env|
data = "#{time}"
end
- if Time.now.to_unix - time.to_i > 600
+ # The hub will sometimes check if we're still subscribed after delivery errors
+ if Time.now.to_unix - time.to_i > 432000
halt env, status_code: 400
end