namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
/**
- * Redirects to a random profile of this node
+ * Redirects to a random Friendica profile this node knows about
*/
class RandomProfile extends BaseModule
{
- public static function content()
+ public static function content(array $parameters = [])
{
- $a = self::getApp();
+ $a = DI::app();
$contactUrl = GContact::getRandomUrl();
$a->redirect($link);
}
- $a->internalRedirect('profile');
+ DI::baseUrl()->redirect('profile');
}
}