Prohibit combined usage of "star" and "mention"

This commit is contained in:
Michael 2021-02-21 12:18:50 +00:00
parent dcc82bfcf7
commit 2bb8e7a56f

View file

@ -314,6 +314,13 @@ class Network extends BaseModule
self::$selectedTab = self::$selectedTab ?? self::$order;
// Prohibit combined usage of "star" and "mention"
if (self::$selectedTab == 'star') {
self::$mention = false;
} elseif (self::$selectedTab == 'mention') {
self::$star = false;
}
Session::set('network-tab', self::$selectedTab);
DI::pConfig()->set(local_user(), 'network.view', 'selected_tab', self::$selectedTab);