Simplified code
This commit is contained in:
parent
4ad3cc2cc1
commit
68b9a9796c
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user