mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:21:30 +01:00
Unused constant removed
This commit is contained in:
parent
31bf8d3ea0
commit
a5176cb841
1 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue