mirror of
https://github.com/friendica/friendica
synced 2025-04-26 04:30:11 +00:00
Display content warning as title if collapsing is deactivated
This commit is contained in:
parent
296f561878
commit
41db5f0912
2 changed files with 15 additions and 3 deletions
|
@ -316,7 +316,13 @@ class Post extends BaseObject
|
|||
$body_e = $body;
|
||||
$text_e = strip_tags($body);
|
||||
$name_e = $profile_name;
|
||||
$title_e = $item['title'];
|
||||
|
||||
if (!empty($item['content-warning']) && PConfig::get(local_user(), 'social', 'disable_cw', false)) {
|
||||
$title_e = ucfirst($item['content-warning']);
|
||||
} else {
|
||||
$title_e = $item['title'];
|
||||
}
|
||||
|
||||
$location_e = $location;
|
||||
$owner_name_e = $this->getOwnerName();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue