remote_user is replaced
This commit is contained in:
parent
6e9026e033
commit
1c26baec46
11 changed files with 40 additions and 53 deletions
|
@ -348,8 +348,8 @@ function item_post(App $a) {
|
|||
if (local_user() && ((local_user() == $profile_uid) || $allow_comment)) {
|
||||
$self = true;
|
||||
$author = DBA::selectFirst('contact', [], ['uid' => local_user(), 'self' => true]);
|
||||
} elseif (!empty(remote_user($profile_uid))) {
|
||||
$author = DBA::selectFirst('contact', [], ['id' => remote_user($profile_uid)]);
|
||||
} elseif (!empty(Session::getRemoteContactID($profile_uid))) {
|
||||
$author = DBA::selectFirst('contact', [], ['id' => Session::getRemoteContactID($profile_uid)]);
|
||||
}
|
||||
|
||||
if (DBA::isResult($author)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue