Merge branch 'app-variables' of github.com:annando/friendica into app-variables

This commit is contained in:
Michael 2021-07-25 05:08:33 +00:00
commit 9cc4682e0a
4 changed files with 13 additions and 12 deletions

View file

@ -118,7 +118,7 @@ class Delegation extends BaseModule
throw new ForbiddenException(DI::l10n()->t('Permission denied.'));
}
$identities = User::identities(DI::session()->get('submanage') ?: local_user());
$identities = User::identities(DI::session()->get('submanage', local_user()));
//getting additinal information for each identity
foreach ($identities as $key => $identity) {

View file

@ -65,7 +65,7 @@ class Magic extends BaseModule
$contact = DBA::selectFirst('contact', ['id', 'nurl', 'url'], ['id' => $cid]);
// Redirect if the contact is already authenticated on this site.
if (!empty($a->getContactId()) && strpos($contact['nurl'], Strings::normaliseLink(DI::baseUrl()->get())) !== false) {
if ($a->getContactId() && strpos($contact['nurl'], Strings::normaliseLink(DI::baseUrl()->get())) !== false) {
if ($test) {
$ret['success'] = true;
$ret['message'] .= 'Local site - you are already authenticated.' . EOL;