Fix order on network page
This commit is contained in:
parent
5b0003fd0f
commit
db8be13bbf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue