diff --git a/src/Content/Conversation.php b/src/Content/Conversation.php index ac37a3a8b..0c3a6c988 100644 --- a/src/Content/Conversation.php +++ b/src/Content/Conversation.php @@ -635,6 +635,8 @@ class Conversation $title = $item['title']; } elseif (!empty($item['content-warning']) && $this->pConfig->get(local_user(), 'system', 'disable_cw', false)) { $title = ucfirst($item['content-warning']); + } else { + $title = ''; } $tmp_item = [ diff --git a/src/Object/Post.php b/src/Object/Post.php index b5c058dfd..4e0d8d238 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -393,6 +393,8 @@ class Post $title = $item['title']; } elseif (!empty($item['content-warning']) && DI::pConfig()->get(local_user(), 'system', 'disable_cw', false)) { $title = ucfirst($item['content-warning']); + } else { + $title = ''; } if (DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {