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;