mirror of
https://github.com/friendica/friendica
synced 2024-11-20 08:23:41 +00:00
Issue 9457: Fix remembering "personal" and "starred"
This commit is contained in:
parent
cb88be3883
commit
944b0eadb7
1 changed files with 6 additions and 3 deletions
|
@ -289,10 +289,16 @@ class Network extends BaseModule
|
||||||
|
|
||||||
if (!empty($get['star'])) {
|
if (!empty($get['star'])) {
|
||||||
self::$selectedTab = 'star';
|
self::$selectedTab = 'star';
|
||||||
|
self::$star = true;
|
||||||
|
} else {
|
||||||
|
self::$star = self::$selectedTab == 'star';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($get['mention'])) {
|
if (!empty($get['mention'])) {
|
||||||
self::$selectedTab = 'mention';
|
self::$selectedTab = 'mention';
|
||||||
|
self::$mention = true;
|
||||||
|
} else {
|
||||||
|
self::$mention = self::$selectedTab == 'mention';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($get['order'])) {
|
if (!empty($get['order'])) {
|
||||||
|
@ -302,9 +308,6 @@ class Network extends BaseModule
|
||||||
self::$order = 'received';
|
self::$order = 'received';
|
||||||
}
|
}
|
||||||
|
|
||||||
self::$star = intval($get['star'] ?? 0);
|
|
||||||
self::$mention = intval($get['mention'] ?? 0);
|
|
||||||
|
|
||||||
self::$selectedTab = self::$selectedTab ?? self::$order;
|
self::$selectedTab = self::$selectedTab ?? self::$order;
|
||||||
|
|
||||||
Session::set('network-tab', self::$selectedTab);
|
Session::set('network-tab', self::$selectedTab);
|
||||||
|
|
Loading…
Reference in a new issue