mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 02:43:41 +00:00
Merge pull request #747 from MrPetovan/bug/mastodoncustomemojis-fix-notice
[mastodoncustomemojis] Ensure enoji array keys are set
This commit is contained in:
commit
a8282d143e
1 changed files with 4 additions and 2 deletions
|
@ -96,11 +96,13 @@ function mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url)
|
||||||
|
|
||||||
if (is_array($emojis_array) && count($emojis_array)) {
|
if (is_array($emojis_array) && count($emojis_array)) {
|
||||||
foreach ($emojis_array as $emoji) {
|
foreach ($emojis_array as $emoji) {
|
||||||
|
if (!empty($emoji['shortcode']) && !empty($emoji['static_url'])) {
|
||||||
$return['texts'][] = ':' . $emoji['shortcode'] . ':';
|
$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="' . ProxyUtils::proxifyUrl($emoji['static_url']) . '" alt=":' . $emoji['shortcode'] . ':" title=":' . $emoji['shortcode'] . ':"/>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue