Use magicLink whenever possible

This commit is contained in:
Michael 2018-06-02 08:05:06 +00:00
commit 8a34895a23
23 changed files with 61 additions and 165 deletions

View file

@ -4,6 +4,7 @@
*/
use Friendica\App;
use Friendica\Core\System;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\Profile;
@ -12,7 +13,7 @@ function randprof_init(App $a)
$x = GContact::getRandomUrl();
if ($x) {
goaway(Profile::zrl($x));
goaway(Contact::magicLink($x));
}
goaway(System::baseUrl() . '/profile');