]> git.mxchange.org Git - friendica.git/commitdiff
Always provide the title variable
authorMichael <heluecht@pirati.ca>
Tue, 22 Mar 2022 07:07:33 +0000 (07:07 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 22 Mar 2022 07:07:33 +0000 (07:07 +0000)
src/Content/Conversation.php
src/Object/Post.php

index ac37a3a8babac6165a223839bdffc2a57c51bbad..0c3a6c988d30ddcc7e520095e35ffbcd63a27a41 100644 (file)
@@ -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 = [
index b5c058dfd9a9b24db04cc4fee58f45abed32ad42..4e0d8d238923d37b77d0cf1e2dab14191d441060 100644 (file)
@@ -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')) {