From f669186787460848bdbf8184eac45c808b8d0ce7 Mon Sep 17 00:00:00 2001 From: eleksir Date: Tue, 2 Mar 2021 01:36:54 +0300 Subject: [PATCH] image.pm: use large thumbnail instead of real photo in imgur plugin --- lib/image.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/image.pm b/lib/image.pm index 65ee4ac..4e22c18 100644 --- a/lib/image.pm +++ b/lib/image.pm @@ -311,6 +311,8 @@ sub rabbit { ); my $rabbit = imgur ($terms[irand ($#terms + 1)]); + # return just large thumbnail instead of real photo (that can be really huge) + $rabbit = sprintf '%sl%s', substr ($rabbit, 0, -4), substr ($rabbit, -4); if (defined $rabbit) { return sprintf '[(\_/)](%s)', $rabbit;