From 5b805c7b0ec0292e320f85c798315a51ed0c8427 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 26 Apr 2020 21:25:02 -0700 Subject: [PATCH] Revert "Never mark Youtube videos as 'Forbidden or Private' since 403 errors are most likely from API throttling. #2327" This reverts commit 17575a285f4804565ee24f5eaec2b1fafaa9e451. --- src/Linkification/Embedding.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index 0e99ac41c..9eb7f6a72 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -215,7 +215,7 @@ Embedding = title: (req, data) -> return unless req.status - {key, uid, link} = data + {key, uid} = data {status} = req service = Embedding.types[key].title @@ -229,7 +229,7 @@ Embedding = when 404 text = "Not Found" when 403 - text = if service.ignore403 then link.textContent else "Forbidden or Private" + text = "Forbidden or Private" else text = "#{status}'d" Embedding.cb.titleText text, data @@ -545,7 +545,6 @@ Embedding = el title: batchSize: 50 - ignore403: true api: (uids) -> ids = encodeURIComponent uids.join(',') key = '<%= meta.youtubeAPIKey %>'