]> git.mxchange.org Git - friendica.git/commitdiff
More code simplification
authorMichael <heluecht@pirati.ca>
Sat, 2 Sep 2023 19:32:43 +0000 (19:32 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 Sep 2023 19:32:43 +0000 (19:32 +0000)
src/Object/Thread.php

index 5c12987942110caaf01161f79fe6bbeb2a5d9fba..5c825dfc7e9ac4cc4c30e45a3e839ec49a682c47 100644 (file)
@@ -80,18 +80,12 @@ class Thread
                                $this->writable = true;
                                break;
                        case Conversation::MODE_PROFILE:
-                               $this->profile_owner = $a->getProfileOwner();
-                               $this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
-                               break;
                        case Conversation::MODE_DISPLAY:
                                $this->profile_owner = $a->getProfileOwner();
                                $this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
                                break;
                        case Conversation::MODE_CHANNEL:
                        case Conversation::MODE_COMMUNITY:
-                               $this->profile_owner = 0;
-                               $this->writable = $writable;
-                               break;
                        case Conversation::MODE_CONTACTS:
                                $this->profile_owner = 0;
                                $this->writable = $writable;