Issue 14174 and 14421: Option to hide emojis and pictures without description

This commit is contained in:
Michael 2024-10-18 19:00:13 +00:00
parent 159e6e79dc
commit 301717802d
7 changed files with 245 additions and 206 deletions

View file

@ -3733,6 +3733,9 @@ class Item
continue;
}
if (empty($PostMedia->description) && DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'accessibility', 'hide_empty_descriptions')) {
continue;
}
$images[] = $PostMedia->withUrl(new Uri($src_url))->withPreview(new Uri($preview_url), $preview_size);
}
}