mirror of
https://github.com/friendica/friendica
synced 2024-11-20 09:03:40 +00:00
missing self photo on remote site comment boxes
This commit is contained in:
parent
cb6c1f91b7
commit
a5e0190f23
1 changed files with 9 additions and 0 deletions
|
@ -28,6 +28,15 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
|
|||
goaway($a->get_baseurl());
|
||||
}
|
||||
|
||||
if(x($_SESSION['visitor_id']) && (! x($_SESSION['uid']))) {
|
||||
$r = q("SELECT * FROM `contact` WHERE `id` = %d LIMIT 1",
|
||||
intval($_SESSION['visitor_id'])
|
||||
);
|
||||
if(count($r)) {
|
||||
$a->contact = $r[0];
|
||||
}
|
||||
}
|
||||
|
||||
if(x($_SESSION,'uid')) {
|
||||
|
||||
// already logged in user returning
|
||||
|
|
Loading…
Reference in a new issue