From ee8cf83722ba31568f0eed85ea032bcf5a155b50 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 2 Sep 2023 19:32:43 +0000 Subject: [PATCH] More code simplification --- src/Object/Thread.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Object/Thread.php b/src/Object/Thread.php index 5c1298794..5c825dfc7 100644 --- a/src/Object/Thread.php +++ b/src/Object/Thread.php @@ -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;