Remove "f=&" nonsense from network module

- Fixes wrong redirect when using the sidebar filters
This commit is contained in:
Hypolite Petovan 2019-05-27 17:19:38 -04:00
commit ed768c71ee
8 changed files with 28 additions and 30 deletions

View file

@ -1104,7 +1104,7 @@ class App
// Compatibility with the Android Diaspora client
if ($this->module == 'stream') {
$this->internalRedirect('network?f=&order=post');
$this->internalRedirect('network?order=post');
}
if ($this->module == 'conversations') {
@ -1112,15 +1112,15 @@ class App
}
if ($this->module == 'commented') {
$this->internalRedirect('network?f=&order=comment');
$this->internalRedirect('network?order=comment');
}
if ($this->module == 'liked') {
$this->internalRedirect('network?f=&order=comment');
$this->internalRedirect('network?order=comment');
}
if ($this->module == 'activity') {
$this->internalRedirect('network/?f=&conv=1');
$this->internalRedirect('network?conv=1');
}
if (($this->module == 'status_messages') && ($this->cmd == 'status_messages/new')) {

View file

@ -111,7 +111,7 @@ class ForumManager
$selected = (($cid == $contact['id']) ? ' forum-selected' : '');
$entry = [
'url' => 'network?f=&cid=' . $contact['id'],
'url' => 'network?cid=' . $contact['id'],
'external_url' => Contact::magicLink($contact['url']),
'name' => $contact['name'],
'cid' => $contact['id'],

View file

@ -46,6 +46,6 @@ class RemoveTag extends BaseModule
info('Item was not deleted');
}
$app->internalRedirect('/network?f=&file=' . rawurlencode($term));
$app->internalRedirect('network?file=' . rawurlencode($term));
}
}