Simplified code

This commit is contained in:
Michael 2023-09-02 19:28:54 +00:00
parent 4ad3cc2cc1
commit 68b9a9796c
2 changed files with 1 additions and 5 deletions

View File

@ -246,8 +246,7 @@ class Community extends BaseModule
} }
self::$min_id = $_GET['min_id'] ?? null; self::$min_id = $_GET['min_id'] ?? null;
self::$max_id = $_GET['max_id'] ?? null; self::$max_id = $_GET['last_commented'] ?? $_GET['max_id'] ?? null;
self::$max_id = $_GET['last_commented'] ?? self::$max_id;
} }
/** /**

View File

@ -88,9 +88,6 @@ class Thread
$this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable; $this->writable = Security::canWriteToUserWall($this->profile_owner) || $writable;
break; break;
case Conversation::MODE_CHANNEL: case Conversation::MODE_CHANNEL:
$this->profile_owner = 0;
$this->writable = $writable;
break;
case Conversation::MODE_COMMUNITY: case Conversation::MODE_COMMUNITY:
$this->profile_owner = 0; $this->profile_owner = 0;
$this->writable = $writable; $this->writable = $writable;