]> git.mxchange.org Git - friendica-addons.git/commitdiff
Proxify functionality is removed
authorMichael <heluecht@pirati.ca>
Mon, 15 Apr 2024 19:34:07 +0000 (19:34 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 16 Apr 2024 05:05:53 +0000 (05:05 +0000)
curweather/curweather.php
mastodoncustomemojis/mastodoncustomemojis.php

index f614840a24e7af239e83380157ce8b3a8596ce6c..5a14a9cf0b0df5a2e85070650f54749af01e8721 100644 (file)
@@ -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'],
index f67054a1c6a4c339919467dc878d740ae0ef75dc..561262f13979bdcc39805665704ef2927779c7f0 100644 (file)
@@ -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'][] = '<img class="emoji mastodon" src="' . ProxyUtils::proxifyUrl($emoji['static_url']) . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
+                                       $return['icons'][] = '<img class="emoji mastodon" src="' . $emoji['static_url'] . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
                                }
                        }
                }