From: Steinar H. Gunderson Date: Tue, 13 Jul 2021 12:22:43 +0000 (+0200) Subject: Fix cache-on-upload. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=8659566dfd0c4a181b4562bc171a8f7df933668f Fix cache-on-upload. --- diff --git a/perl/Sesse/pr0n/Upload.pm b/perl/Sesse/pr0n/Upload.pm index 6f44f7a..0fdce3a 100644 --- a/perl/Sesse/pr0n/Upload.pm +++ b/perl/Sesse/pr0n/Upload.pm @@ -97,7 +97,7 @@ sub handler { # Make cache while we're at it. # FIXME: Ideally we'd want to ensure cache of -1x-1 here as well (for NEFs), but that would # preclude mipmapping in its current form. - Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, undef, undef, 320, 256); + Sesse::pr0n::Common::ensure_cached($r, 0, 0, $filename, $newid, undef, undef, 320, 256); # OK, we got this far, commit $dbh->commit;