From: Michael Date: Thu, 21 Apr 2022 05:52:08 +0000 (+0000) Subject: Order starred posts and posts with mention by the last comment date X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5a41c2039a772fd931d9a3dd682d672196246250;p=friendica.git Order starred posts and posts with mention by the last comment date --- diff --git a/src/Module/Conversation/Network.php b/src/Module/Conversation/Network.php index ca29f4341a..3e64eed5cf 100644 --- a/src/Module/Conversation/Network.php +++ b/src/Module/Conversation/Network.php @@ -309,8 +309,6 @@ class Network extends BaseModule self::$selectedTab = Session::get('network-tab', DI::pConfig()->get(local_user(), 'network.view', 'selected_tab', '')); - self::$order = 'commented'; - if (!empty($get['star'])) { self::$selectedTab = 'star'; self::$star = true; @@ -330,10 +328,12 @@ class Network extends BaseModule self::$order = $get['order']; self::$star = false; self::$mention = false; - } elseif (in_array(self::$selectedTab, ['received', 'star', 'mention'])) { + } elseif (self::$selectedTab == 'received') { self::$order = 'received'; - } elseif (in_array(self::$selectedTab, ['created'])) { + } elseif (self::$selectedTab == 'created') { self::$order = 'created'; + } else { + self::$order = 'commented'; } self::$selectedTab = self::$selectedTab ?? self::$order;