Prioritize the title over the content warning

2022.09-rc
Michael 2022-03-22 07:00:44 +00:00
rodzic a2a5f05a19
commit be016b0c45
2 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -631,10 +631,10 @@ class Conversation
[$categories, $folders] = $this->item->determineCategoriesTerms($item, local_user());
if (!empty($item['content-warning']) && $this->pConfig->get(local_user(), 'system', 'disable_cw', false)) {
$title = ucfirst($item['content-warning']);
} else {
if (!empty($item['title'])) {
$title = $item['title'];
} elseif (!empty($item['content-warning']) && $this->pConfig->get(local_user(), 'system', 'disable_cw', false)) {
$title = ucfirst($item['content-warning']);
}
$tmp_item = [

Wyświetl plik

@ -389,10 +389,10 @@ class Post
list($categories, $folders) = DI::contentItem()->determineCategoriesTerms($item, local_user());
if (!empty($item['content-warning']) && DI::pConfig()->get(local_user(), 'system', 'disable_cw', false)) {
$title = ucfirst($item['content-warning']);
} else {
if (!empty($item['title'])) {
$title = $item['title'];
} elseif (!empty($item['content-warning']) && DI::pConfig()->get(local_user(), 'system', 'disable_cw', false)) {
$title = ucfirst($item['content-warning']);
}
if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {