mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[global]: Proxy class has been introduced, need to fix these as well.
This commit is contained in:
parent
fc2a367dae
commit
265a2c498e
4 changed files with 12 additions and 12 deletions
|
@ -14,6 +14,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Network\Proxy;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
function mastodoncustomemojis_install()
|
||||
|
@ -88,7 +89,7 @@ function mastodoncustomemojis_get_custom_emojis_for_author($author_link)
|
|||
if (is_array($emojis_array)) {
|
||||
foreach ($emojis_array as $emoji) {
|
||||
$emojis['texts'][] = ':' . $emoji['shortcode'] . ':';
|
||||
$emojis['icons'][] = '<img class="emoji mastodon" src="' . proxy_url($emoji['static_url']) . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
|
||||
$emojis['icons'][] = '<img class="emoji mastodon" src="' . Proxy::proxifyUrl($emoji['static_url']) . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue