From bf11a46abe07ba832f7df45c3ef33a9f3a2ad3b2 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 11 Mar 2019 10:48:38 -0500 Subject: [PATCH] Bump expire time for pubsub --- src/invidious.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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