mirror of
https://github.com/friendica/friendica
synced 2025-04-27 03:50:11 +00:00
Fix "redir" loop
This commit is contained in:
parent
c0afa761ac
commit
5254147ccc
7 changed files with 93 additions and 39 deletions
|
@ -337,16 +337,9 @@ class Widget
|
|||
return;
|
||||
}
|
||||
|
||||
$cid = $zcid = 0;
|
||||
$zcid = 0;
|
||||
|
||||
if (!empty($_SESSION['remote'])) {
|
||||
foreach ($_SESSION['remote'] as $visitor) {
|
||||
if ($visitor['uid'] == $profile_uid) {
|
||||
$cid = $visitor['cid'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
$cid = remote_user($profile_uid);
|
||||
|
||||
if (!$cid) {
|
||||
if (Profile::getMyURL()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue