1
0
Fork 0

Fix order on network page

This commit is contained in:
Michael 2020-10-30 22:13:14 +00:00
parent 5b0003fd0f
commit db8be13bbf

View file

@ -289,17 +289,17 @@ class Network extends BaseModule
if (!empty($get['star'])) { if (!empty($get['star'])) {
self::$selectedTab = 'star'; self::$selectedTab = 'star';
self::$order = 'received';
} }
if (!empty($get['mention'])) { if (!empty($get['mention'])) {
self::$selectedTab = 'mention'; self::$selectedTab = 'mention';
self::$order = 'received';
} }
if (!empty($get['order'])) { if (!empty($get['order'])) {
self::$selectedTab = $get['order']; self::$selectedTab = $get['order'];
self::$order = $get['order']; self::$order = $get['order'];
} elseif (in_array(self::$selectedTab, ['received', 'star', 'mention'])) {
self::$order = 'received';
} }
self::$star = intval($get['star'] ?? 0); self::$star = intval($get['star'] ?? 0);