mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +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
|
@ -273,6 +273,13 @@ class Page implements ArrayAccess
|
|||
'$max_imagesize' => round(Images::getMaxUploadBytes() / 1000000, 0),
|
||||
|
||||
]) . $this->page['htmlhead'];
|
||||
|
||||
if ($pConfig->get($localUID, 'accessibility', 'hide_empty_descriptions')) {
|
||||
$this->page['htmlhead'] .= "<style>.empty-description {display: none;}</style>\n";
|
||||
}
|
||||
if ($pConfig->get($localUID, 'accessibility', 'hide_custom_emojis')) {
|
||||
$this->page['htmlhead'] .= "<style>span.emoji.mastodon img {display: none;}</style>\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue