Unused constant removed

This commit is contained in:
Michael 2021-07-05 05:41:05 +00:00
parent 31bf8d3ea0
commit a5176cb841

View file

@ -21,6 +21,8 @@
namespace Friendica\Util; namespace Friendica\Util;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\DI; use Friendica\DI;
/** /**
@ -28,12 +30,6 @@ use Friendica\DI;
*/ */
class Proxy class Proxy
{ {
/**
* Default time to keep images in proxy storage
*/
const DEFAULT_TIME = 86400; // 1 Day
/** /**
* Sizes constants * Sizes constants
*/ */
@ -122,6 +118,8 @@ class Proxy
$size = ':' . $size; $size = ':' . $size;
} }
Logger::info('Created proxy link', ['url' => $url, 'callstack' => System::callstack(20)]);
// Too long files aren't supported by Apache // Too long files aren't supported by Apache
if (strlen($proxypath) > 250) { if (strlen($proxypath) > 250) {
return DI::baseUrl() . '/proxy/' . $shortpath . '?url=' . urlencode($url); return DI::baseUrl() . '/proxy/' . $shortpath . '?url=' . urlencode($url);