mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
And some more view calls added
This commit is contained in:
parent
3e5c3dce01
commit
c4f7f3e26e
3 changed files with 7 additions and 21 deletions
|
@ -116,11 +116,7 @@ function display_init(App $a)
|
|||
$nickname = str_replace(Strings::normaliseLink(DI::baseUrl()) . '/profile/', '', Strings::normaliseLink($profiledata['url']));
|
||||
|
||||
if (!empty($a->user['nickname']) && $nickname != $a->user['nickname']) {
|
||||
$profile = DBA::fetchFirst("SELECT `profile`.* , `contact`.`avatar-date` AS picdate, `user`.* FROM `profile`
|
||||
INNER JOIN `contact` on `contact`.`uid` = `profile`.`uid` INNER JOIN `user` ON `profile`.`uid` = `user`.`uid`
|
||||
WHERE `user`.`nickname` = ? AND `contact`.`self` LIMIT 1",
|
||||
$nickname
|
||||
);
|
||||
$profile = DBA::selectFirst('owner-view', [], ['nickname' => $nickname]);
|
||||
if (DBA::isResult($profile)) {
|
||||
$profiledata = $profile;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue