]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Proxy.php
API: some more converted functions
[friendica.git] / src / Util / Proxy.php
index 443725a3d88f334c5ebe440ac60de0efb5db7d12..dcc46115588af775e53d1feb16861afa93b615e9 100644 (file)
@@ -75,13 +75,17 @@ class Proxy
         * provided URL isn't local
         *
         * @param string $url       The URL to proxyfy
-        * @param string $size      One of the ProxyUtils::SIZE_* constants
+        * @param string $size      One of the Proxy::SIZE_* constants
         *
         * @return string The proxyfied URL or relative path
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public static function proxifyUrl($url, $size = '')
        {
+               if (!DI::config()->get('system', 'proxify_content')) {
+                       return $url;
+               }
+
                // Trim URL first
                $url = trim($url);