From 60826c2d0c20394fb3d3106ffb97c513b2d60fc2 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 3 Jul 2019 10:12:03 -0500 Subject: [PATCH] Fix author thumbnail for community replies --- src/invidious/channels.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/channels.cr b/src/invidious/channels.cr index a3448f98b..d7f68b11e 100644 --- a/src/invidious/channels.cr +++ b/src/invidious/channels.cr @@ -719,7 +719,7 @@ def fetch_channel_community(ucid, continuation, locale, config, kemal_config) qualities.each do |quality| json.object do - json.field "url", author_thumbnail.gsub("=s100-", "=s#{quality}-") + json.field "url", author_thumbnail.gsub(/s\d+-/, "s#{quality}-") json.field "width", quality json.field "height", quality end