{
$this->routeCollector->addRoute(['GET', 'POST'], '/itemsource[/{guid}]', Module\Itemsource::class);
$this->routeCollector->addRoute(['GET'], '/amcd', Module\AccountManagementControlDocument::class);
+ $this->routeCollector->addRoute(['GET'], '/acctlink', Module\Acctlink::class);
+ $this->routeCollector->addRoute(['GET'], '/apps', Module\Apps::class);
+ $this->routeCollector->addRoute(['GET'], '/attach/{item:\d+}', Module\Attach::class);
+ $this->routeCollector->addRoute(['GET'], '/babel', Module\Babel::class);
+ $this->routeCollector->addGroup('/contact', function (RouteCollector $collector) {
+ $collector->addRoute(['GET'], '[/]', Module\Contact::class);
+ $collector->addRoute(['GET'], '/{id:\d+}[/posts|conversations]', Module\Contact::class);
+ });
}
public function __construct(RouteCollector $routeCollector = null)
use Friendica\BaseModule;
use Friendica\Core\L10n;
-use Friendica\Core\System;
use Friendica\Core\Logger;
+use Friendica\Core\System;
use Friendica\Model\Attach as MAttach;
/**
if ($a->argc != 2) {
System::httpExit(400); // Bad Request.
}
-
+ // @TODO: Replace with parameter from router
$item_id = intval($a->argv[1]);
// Check for existence
$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'])
) {
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 {
namespace Friendica\Module;
-use Friendica\Content\Text\HTML;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Model;
-use Friendica\Protocol\ActivityPub\Processor;
-use Friendica\Protocol\Diaspora;
/**
* @author Hypolite Petovan <mrpetovan@gmail.com>
$a = self::getApp();
+ // @TODO: Replace with parameter from router
if (!empty($a->argv[1])) {
$guid = $a->argv[1];
}