mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:04:22 +02:00
Issue 14174 and 14421: Option to hide emojis and pictures without description
This commit is contained in:
parent
159e6e79dc
commit
301717802d
7 changed files with 245 additions and 206 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue