From 229d8eb0e9275e317f0c30c12e5e9eb55ea87bfe Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 17 Apr 2018 16:46:57 +0000 Subject: [PATCH] better support for the Diaspora app "Dandelion" --- index.php | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index e3ab16469b..2f23ea791a 100644 --- a/index.php +++ b/index.php @@ -228,8 +228,36 @@ if (strlen($a->module)) { */ // Compatibility with the Android Diaspora client - if ($a->module == "stream") { - $a->module = "network"; + if ($a->module == 'stream') { + 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 -- 2.39.5