Add routes for current BaseModules

This commit is contained in:
Philipp Holzer 2019-05-01 20:16:21 +02:00
parent a4c2de7a0b
commit b6b9e57488
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
4 changed files with 13 additions and 5 deletions

View file

@ -46,6 +46,7 @@ class Contact extends BaseModule
$contact_id = null;
$contact = null;
// @TODO: Replace with parameter from router
if ($a->argc == 2 && intval($a->argv[1])
|| $a->argc == 3 && intval($a->argv[1]) && in_array($a->argv[2], ['posts', 'conversations'])
) {
@ -64,6 +65,7 @@ class Contact extends BaseModule
if (DBA::isResult($contact)) {
if ($contact['self']) {
// @TODO: Replace with parameter from router
if (($a->argc == 3) && intval($a->argv[1]) && in_array($a->argv[2], ['posts', 'conversations'])) {
$a->internalRedirect('profile/' . $contact['nick']);
} else {