mirror of
https://github.com/friendica/friendica
synced 2025-05-06 05:04:10 +02:00
The profile page does now shows reshared items
This commit is contained in:
parent
5029b992ad
commit
4965d6aa54
4 changed files with 100 additions and 49 deletions
|
@ -74,11 +74,19 @@ class Session
|
|||
{
|
||||
$session = DI::session();
|
||||
|
||||
if (empty($session->get('remote')[$uid])) {
|
||||
return 0;
|
||||
if (!empty($session->get('remote')[$uid])) {
|
||||
$remote = $session->get('remote')[$uid];
|
||||
} else {
|
||||
$remote = 0;
|
||||
}
|
||||
|
||||
return $session->get('remote')[$uid];
|
||||
$local_user = !empty($session->get('authenticated')) ? $session->get('uid') : 0;
|
||||
|
||||
if (empty($remote) && ($local_user != $uid) && !empty($my_address = $session->get('my_address'))) {
|
||||
$remote = Contact::getIdForURL($my_address, $uid, false);
|
||||
}
|
||||
|
||||
return $remote;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue