Move mod/randprof to src/Module/RandomProfile
This commit is contained in:
parent
d252598821
commit
8bb85b1da7
5 changed files with 52 additions and 34 deletions
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file mod/randprof.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
|
||||
function randprof_init(App $a)
|
||||
{
|
||||
$x = GContact::getRandomUrl();
|
||||
|
||||
if ($x) {
|
||||
$link = Contact::magicLink($x);
|
||||
$a->redirect($link);
|
||||
}
|
||||
|
||||
$a->internalRedirect('profile');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue