Merge pull request #9475 from annando/network-order

Fix order on network page
This commit is contained in:
Hypolite Petovan 2020-10-30 18:33:00 -04:00 committed by GitHub
commit e5c145e73c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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