use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Plaintext;
-use Friendica\Core\Cache;
+use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
$cachekey = 'APDelivery:createActivity:' . $item_id;
if (!$force) {
- $data = Cache::get($cachekey);
+ $data = DI::cache()->get($cachekey);
if (!is_null($data)) {
return $data;
}
$data = ActivityPub\Transmitter::createActivityFromItem($item_id);
- Cache::set($cachekey, $data, Cache::QUARTER_HOUR);
+ DI::cache()->set($cachekey, $data, Cache::QUARTER_HOUR);
return $data;
}
*
* @return string language string
*/
- private static function getLanguage($item)
+ private static function getLanguage(array $item)
{
// Try to fetch the language from the post itself
if (!empty($item['language'])) {