add missing namespaces/fix wrong class-names

This commit is contained in:
nupplaPhil 2020-01-19 16:29:54 +01:00
parent bce67496a7
commit 191e298504
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 7 additions and 7 deletions

View file

@ -11,7 +11,7 @@
use Friendica\App;
use Friendica\Content\Smilies;
use Friendica\Core\Cache;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Protocol;
@ -74,12 +74,12 @@ function mastodoncustomemojis_get_custom_emojis_for_author($author_link)
$cache_key = 'mastodoncustomemojis:' . $api_base_url;
$return = Cache::get($cache_key);
$return = DI::cache()->get($cache_key);
if (empty($return) || Config::get('system', 'ignore_cache')) {
$return = mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url);
Cache::set($cache_key, $return, empty($return['texts']) ? Cache::QUARTER_HOUR : Cache::HOUR);
DI::cache()->set($cache_key, $return, empty($return['texts']) ? Duration::QUARTER_HOUR : Duration::HOUR);
}
return $return;