mirror of
https://github.com/friendica/friendica
synced 2024-11-10 10:22:53 +00:00
goaway fix in App
This commit is contained in:
parent
32af52842b
commit
3072c56057
1 changed files with 9 additions and 9 deletions
18
src/App.php
18
src/App.php
|
@ -1747,35 +1747,35 @@ class App
|
|||
if (strlen($this->module)) {
|
||||
// Compatibility with the Android Diaspora client
|
||||
if ($this->module == 'stream') {
|
||||
goaway('network?f=&order=post');
|
||||
$this->internalRedirect('network?f=&order=post');
|
||||
}
|
||||
|
||||
if ($this->module == 'conversations') {
|
||||
goaway('message');
|
||||
$this->internalRedirect('message');
|
||||
}
|
||||
|
||||
if ($this->module == 'commented') {
|
||||
goaway('network?f=&order=comment');
|
||||
$this->internalRedirect('network?f=&order=comment');
|
||||
}
|
||||
|
||||
if ($this->module == 'liked') {
|
||||
goaway('network?f=&order=comment');
|
||||
$this->internalRedirect('network?f=&order=comment');
|
||||
}
|
||||
|
||||
if ($this->module == 'activity') {
|
||||
goaway('network/?f=&conv=1');
|
||||
$this->internalRedirect('network/?f=&conv=1');
|
||||
}
|
||||
|
||||
if (($this->module == 'status_messages') && ($this->cmd == 'status_messages/new')) {
|
||||
goaway('bookmarklet');
|
||||
$this->internalRedirect('bookmarklet');
|
||||
}
|
||||
|
||||
if (($this->module == 'user') && ($this->cmd == 'user/edit')) {
|
||||
goaway('settings');
|
||||
$this->internalRedirect('settings');
|
||||
}
|
||||
|
||||
if (($this->module == 'tag_followings') && ($this->cmd == 'tag_followings/manage')) {
|
||||
goaway('search');
|
||||
$this->internalRedirect('search');
|
||||
}
|
||||
|
||||
// Compatibility with the Firefox App
|
||||
|
@ -1830,7 +1830,7 @@ class App
|
|||
|
||||
if (!empty($_SERVER['QUERY_STRING']) && ($_SERVER['QUERY_STRING'] === 'q=internal_error.html') && isset($dreamhost_error_hack)) {
|
||||
logger('index.php: dreamhost_error_hack invoked. Original URI =' . $_SERVER['REQUEST_URI']);
|
||||
goaway($this->getBaseURL() . $_SERVER['REQUEST_URI']);
|
||||
$this->internalRedirect($_SERVER['REQUEST_URI']);
|
||||
}
|
||||
|
||||
logger('index.php: page not found: ' . $_SERVER['REQUEST_URI'] . ' ADDRESS: ' . $_SERVER['REMOTE_ADDR'] . ' QUERY: ' . $_SERVER['QUERY_STRING'], LOGGER_DEBUG);
|
||||
|
|
Loading…
Reference in a new issue