Unneeded "ProxyUtils" renamed to "Proxy"
This commit is contained in:
@@ -1722,7 +1722,7 @@ class Contact
|
||||
* Get avatar link for given contact id
|
||||
*
|
||||
* @param integer $cid contact id
|
||||
* @param string $size One of the ProxyUtils::SIZE_* constants
|
||||
* @param string $size One of the Proxy::SIZE_* constants
|
||||
* @param string $updated Contact update date
|
||||
* @return string avatar link
|
||||
*/
|
||||
@@ -1764,7 +1764,7 @@ class Contact
|
||||
*
|
||||
* @param string $url contact url
|
||||
* @param integer $uid user id
|
||||
* @param string $size One of the ProxyUtils::SIZE_* constants
|
||||
* @param string $size One of the Proxy::SIZE_* constants
|
||||
* @return string avatar link
|
||||
*/
|
||||
public static function getAvatarUrlForUrl(string $url, int $uid, string $size = ''):string
|
||||
@@ -1779,7 +1779,7 @@ class Contact
|
||||
* Get header link for given contact id
|
||||
*
|
||||
* @param integer $cid contact id
|
||||
* @param string $size One of the ProxyUtils::SIZE_* constants
|
||||
* @param string $size One of the Proxy::SIZE_* constants
|
||||
* @param string $updated Contact update date
|
||||
* @return string header link
|
||||
*/
|
||||
|
||||
@@ -686,7 +686,7 @@ class Media
|
||||
* Get preview link for given media id
|
||||
*
|
||||
* @param integer $id media id
|
||||
* @param string $size One of the ProxyUtils::SIZE_* constants
|
||||
* @param string $size One of the Proxy::SIZE_* constants
|
||||
* @return string preview link
|
||||
*/
|
||||
public static function getPreviewUrlForId(int $id, string $size = ''):string
|
||||
@@ -716,7 +716,7 @@ class Media
|
||||
* Get media link for given media id
|
||||
*
|
||||
* @param integer $id media id
|
||||
* @param string $size One of the ProxyUtils::SIZE_* constants
|
||||
* @param string $size One of the Proxy::SIZE_* constants
|
||||
* @return string media link
|
||||
*/
|
||||
public static function getUrlForId(int $id, string $size = ''):string
|
||||
|
||||
@@ -41,7 +41,7 @@ use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\Proxy as ProxyUtils;
|
||||
use Friendica\Util\Proxy;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
class Profile
|
||||
@@ -441,7 +441,7 @@ class Profile
|
||||
$p['address'] = BBCode::convertForUriId($profile['uri-id'] ?? 0, $p['address']);
|
||||
}
|
||||
|
||||
$p['photo'] = Contact::getAvatarUrlForId($cid, ProxyUtils::SIZE_SMALL);
|
||||
$p['photo'] = Contact::getAvatarUrlForId($cid, Proxy::SIZE_SMALL);
|
||||
|
||||
$p['url'] = Contact::magicLinkById($cid, $profile['url']);
|
||||
|
||||
|
||||
@@ -844,7 +844,7 @@ class User
|
||||
* Get avatar link for given user
|
||||
*
|
||||
* @param array $user
|
||||
* @param string $size One of the ProxyUtils::SIZE_* constants
|
||||
* @param string $size One of the Proxy::SIZE_* constants
|
||||
* @return string avatar link
|
||||
* @throws Exception
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user