]> git.mxchange.org Git - friendica.git/commitdiff
Simplified code
authorMichael <heluecht@pirati.ca>
Sat, 2 Sep 2023 19:28:54 +0000 (19:28 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 Sep 2023 19:28:54 +0000 (19:28 +0000)
src/Module/Conversation/Community.php
src/Object/Thread.php

index 9772248428e4bb404177ff2dc8c5c1d0adb60a70..08fcf52cc770c441d1b77cc0325949f9b32150d9 100644 (file)
@@ -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;
        }
 
        /**
index 8b594eab5628808ae8ded5bea9e9f7be7b5d86e2..5c12987942110caaf01161f79fe6bbeb2a5d9fba 100644 (file)
@@ -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;