Remove "f=&" nonsense from network module
- Fixes wrong redirect when using the sidebar filters
This commit is contained in:
parent
cd05d15b04
commit
ed768c71ee
8 changed files with 28 additions and 30 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
|
|
@ -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'],
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue