From 9c6a86ffaa569ed4e1b059ca9f2c13c1b5807cdd Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 15 Apr 2024 19:34:07 +0000 Subject: [PATCH] Proxify functionality is removed --- curweather/curweather.php | 4 +--- mastodoncustomemojis/mastodoncustomemojis.php | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/curweather/curweather.php b/curweather/curweather.php index f614840a2..5a14a9cf0 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -9,12 +9,10 @@ * */ -use Friendica\App; use Friendica\Core\Cache\Enum\Duration; use Friendica\Core\Hook; use Friendica\Core\Renderer; use Friendica\DI; -use Friendica\Util\Proxy as ProxyUtils; function curweather_install() { @@ -127,7 +125,7 @@ function curweather_network_mod_init(string &$body) $t = Renderer::getMarkupTemplate("widget.tpl", "addon/curweather/" ); $curweather = Renderer::replaceMacros($t, [ '$title' => DI::l10n()->t("Current Weather"), - '$icon' => ProxyUtils::proxifyUrl('http://openweathermap.org/img/w/'.$res['icon'].'.png'), + '$icon' => 'http://openweathermap.org/img/w/'.$res['icon'].'.png', '$city' => $res['city'], '$lon' => $res['lon'], '$lat' => $res['lat'], diff --git a/mastodoncustomemojis/mastodoncustomemojis.php b/mastodoncustomemojis/mastodoncustomemojis.php index f67054a1c..561262f13 100644 --- a/mastodoncustomemojis/mastodoncustomemojis.php +++ b/mastodoncustomemojis/mastodoncustomemojis.php @@ -15,7 +15,6 @@ use Friendica\Core\Cache\Enum\Duration; use Friendica\Core\Hook; use Friendica\Core\Protocol; use Friendica\DI; -use Friendica\Util\Proxy as ProxyUtils; function mastodoncustomemojis_install() { @@ -88,7 +87,7 @@ function mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url) foreach ($emojis_array as $emoji) { if (!empty($emoji['shortcode']) && !empty($emoji['static_url'])) { $return['texts'][] = ':' . $emoji['shortcode'] . ':'; - $return['icons'][] = ':' . $emoji['shortcode'] . ':'; + $return['icons'][] = ':' . $emoji['shortcode'] . ':'; } } }