mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:50:11 +00:00
Fixups
This commit is contained in:
parent
90cde9898b
commit
766b3f0d01
2 changed files with 4 additions and 3 deletions
|
@ -24,13 +24,14 @@ namespace Friendica\Module;
|
|||
use Friendica\BaseModule;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Network\HTTPException\NotFoundException;
|
||||
|
||||
/**
|
||||
* Redirects to another URL based on the parameter 'addr'
|
||||
*/
|
||||
class Acctlink extends BaseModule
|
||||
{
|
||||
public function content(): string
|
||||
public function rawContent()
|
||||
{
|
||||
$addr = trim($_GET['addr'] ?? '');
|
||||
|
||||
|
@ -42,6 +43,6 @@ class Acctlink extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
throw new NotFoundException('Parameter "url" is missing');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue