diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-11 10:48:38 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-11 10:48:38 -0500 |
| commit | bf11a46abe07ba832f7df45c3ef33a9f3a2ad3b2 (patch) | |
| tree | 7e348541248ee202cd309139263ffa541d15701c /src/invidious.cr | |
| parent | 8f41130a147d8970df0526d2383b6f2dbda905bb (diff) | |
| download | invidious-bf11a46abe07ba832f7df45c3ef33a9f3a2ad3b2.tar.gz invidious-bf11a46abe07ba832f7df45c3ef33a9f3a2ad3b2.tar.bz2 invidious-bf11a46abe07ba832f7df45c3ef33a9f3a2ad3b2.zip | |
Bump expire time for pubsub
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 3 |
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 |
