From: Michael Date: Sat, 2 Sep 2023 19:28:54 +0000 (+0000) Subject: Simplified code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=68b9a9796cd69667dd77b1cafe662665e8b82965;p=friendica.git Simplified code --- diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index 9772248428..08fcf52cc7 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -246,8 +246,7 @@ class Community extends BaseModule } self::$min_id = $_GET['min_id'] ?? null; - self::$max_id = $_GET['max_id'] ?? null; - self::$max_id = $_GET['last_commented'] ?? self::$max_id; + self::$max_id = $_GET['last_commented'] ?? $_GET['max_id'] ?? null; } /** diff --git a/src/Object/Thread.php b/src/Object/Thread.php index 8b594eab56..5c12987942 100644 --- a/src/Object/Thread.php +++ b/src/Object/Thread.php @@ -88,9 +88,6 @@ class Thread $this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable; break; case Conversation::MODE_CHANNEL: - $this->profile_owner = 0; - $this->writable = $writable; - break; case Conversation::MODE_COMMUNITY: $this->profile_owner = 0; $this->writable = $writable;