فهرست منبع

Update lib/Proxy/ChhotoProxy.php

Co-authored-by: El RIDO <elrido@gmx.net>
Dark77 1 هفته پیش
والد
کامیت
e10590ef3f
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  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;