Quellcode durchsuchen

Update lib/Proxy/ChhotoProxy.php

Co-authored-by: El RIDO <elrido@gmx.net>
Dark77 vor 1 Woche
Ursprung
Commit
e10590ef3f
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      lib/Proxy/ChhotoProxy.php

+ 1 - 2
lib/Proxy/ChhotoProxy.php

@@ -83,8 +83,7 @@ class ChhotoProxy extends AbstractProxy
         // Fallback for older versions that return only the slug
         if (!empty($data['shortlink'])) {
             $apiUrl = $this->_getProxyUrl(new Configuration()); // not ideal, but works
-            // Better: hardcode or get base from config
-            return 'https://lix.sk/' . ltrim($data['shortlink'], '/');
+            return $apiUrl' . ltrim($data['shortlink'], '/');
         }
 
         return null;