mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 22:14:25 +02:00
Add routes for current BaseModules
This commit is contained in:
parent
a4c2de7a0b
commit
b6b9e57488
4 changed files with 13 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue