mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Adding $a->getBaseURL for Worker in profile_photo
Adding a TODO for Contact::magicLink
This commit is contained in:
parent
34989480e1
commit
363d00cc45
3 changed files with 10 additions and 2 deletions
|
@ -13,7 +13,13 @@ function randprof_init(App $a)
|
|||
$x = GContact::getRandomUrl();
|
||||
|
||||
if ($x) {
|
||||
$a->internalRedirect(Contact::magicLink($x));
|
||||
$link = Contact::magicLink($x);
|
||||
// @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
|
||||
if (filter_var($link, FILTER_VALIDATE_URL)) {
|
||||
System::externalRedirect($link);
|
||||
} else {
|
||||
$a->internalRedirect($link);
|
||||
}
|
||||
}
|
||||
|
||||
$a->internalRedirect('profile');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue