The data for the language display is now fetched on demand

This commit is contained in:
Michael 2024-04-05 09:57:43 +00:00
parent 50b1de5959
commit b40687081e
7 changed files with 80 additions and 8 deletions

View file

@ -521,7 +521,7 @@ class Post
$languages = [];
if (!empty($item['language'])) {
$languages = [DI::l10n()->t('Languages'), Item::getLanguageMessage($item)];
$languages = DI::l10n()->t('Languages');
}
if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]) && in_array($item['network'], Protocol::FEDERATED)) {