mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
Add routes for current BaseModules
This commit is contained in:
parent
b6b9e57488
commit
07ba1b200c
16 changed files with 806 additions and 722 deletions
|
@ -5,9 +5,9 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Protocol\ActivityPub;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Protocol\ActivityPub;
|
||||
|
||||
/**
|
||||
* ActivityPub Followers
|
||||
|
@ -18,10 +18,12 @@ class Followers extends BaseModule
|
|||
{
|
||||
$a = self::getApp();
|
||||
|
||||
// @TODO: Replace with parameter from router
|
||||
if (empty($a->argv[1])) {
|
||||
System::httpExit(404);
|
||||
}
|
||||
|
||||
// @TODO: Replace with parameter from router
|
||||
$owner = User::getOwnerDataByNick($a->argv[1]);
|
||||
if (empty($owner)) {
|
||||
System::httpExit(404);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue