]> git.mxchange.org Git - friendica.git/commitdiff
Unused constant removed
authorMichael <heluecht@pirati.ca>
Mon, 5 Jul 2021 05:41:05 +0000 (05:41 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Jul 2021 05:41:05 +0000 (05:41 +0000)
src/Util/Proxy.php

index 16e3e221ff5c0da7dab239eb27e089b3aa80bb05..12be746a687f1548b30208e9b3dc2872ff199dc6 100644 (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);