mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
remote_user is replaced
This commit is contained in:
parent
6e9026e033
commit
1c26baec46
11 changed files with 40 additions and 53 deletions
|
@ -248,8 +248,8 @@ class Profile
|
|||
*/
|
||||
public static function getByNickname($nickname, $uid = 0, $profile_id = 0)
|
||||
{
|
||||
if (!empty(remote_user($uid))) {
|
||||
$contact = DBA::selectFirst('contact', ['profile-id'], ['id' => remote_user($uid)]);
|
||||
if (!empty(Session::getRemoteContactID($uid))) {
|
||||
$contact = DBA::selectFirst('contact', ['profile-id'], ['id' => Session::getRemoteContactID($uid)]);
|
||||
if (DBA::isResult($contact)) {
|
||||
$profile_id = $contact['profile-id'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue