mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
better support for the Diaspora app "Dandelion"
This commit is contained in:
parent
7b6d1e1ab3
commit
229d8eb0e9
1 changed files with 30 additions and 2 deletions
32
index.php
32
index.php
|
@ -228,8 +228,36 @@ if (strlen($a->module)) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Compatibility with the Android Diaspora client
|
// Compatibility with the Android Diaspora client
|
||||||
if ($a->module == "stream") {
|
if ($a->module == 'stream') {
|
||||||
$a->module = "network";
|
goaway('network?f=&order=post');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($a->module == 'conversations') {
|
||||||
|
goaway('message');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($a->module == 'commented') {
|
||||||
|
goaway('network?f=&order=comment');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($a->module == 'liked') {
|
||||||
|
goaway('network?f=&order=comment');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($a->module == 'activity') {
|
||||||
|
goaway('network/?f=&conv=1');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (($a->module == 'status_messages') && ($a->cmd == 'status_messages/new')) {
|
||||||
|
goaway('bookmarklet');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (($a->module == 'user') && ($a->cmd == 'user/edit')) {
|
||||||
|
goaway('settings');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (($a->module == 'tag_followings') && ($a->cmd == 'tag_followings/manage')) {
|
||||||
|
goaway('search');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compatibility with the Firefox App
|
// Compatibility with the Firefox App
|
||||||
|
|
Loading…
Reference in a new issue