Unused constant removed

pull/10472/head
Michael 2021-07-05 05:41:05 +00:00
parent 31bf8d3ea0
commit a5176cb841
1 changed files with 4 additions and 6 deletions

View File

@ -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);