From a5176cb8412f2a051927390d0d63176b91a0ec84 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Jul 2021 05:41:05 +0000 Subject: [PATCH] Unused constant removed --- src/Util/Proxy.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Util/Proxy.php b/src/Util/Proxy.php index 16e3e221ff..12be746a68 100644 --- a/src/Util/Proxy.php +++ b/src/Util/Proxy.php @@ -21,6 +21,8 @@ namespace Friendica\Util; +use Friendica\Core\Logger; +use Friendica\Core\System; use Friendica\DI; /** @@ -28,12 +30,6 @@ use Friendica\DI; */ class Proxy { - - /** - * Default time to keep images in proxy storage - */ - const DEFAULT_TIME = 86400; // 1 Day - /** * Sizes constants */ @@ -122,6 +118,8 @@ class Proxy $size = ':' . $size; } + Logger::info('Created proxy link', ['url' => $url, 'callstack' => System::callstack(20)]); + // Too long files aren't supported by Apache if (strlen($proxypath) > 250) { return DI::baseUrl() . '/proxy/' . $shortpath . '?url=' . urlencode($url);