1
0
Fork 0

Merge pull request #9577 from annando/updateprofile

Contacts can now be updated from every theme
This commit is contained in:
Hypolite Petovan 2020-11-22 08:14:09 -05:00 committed by GitHub
commit 4fd9db1035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 15 deletions

View file

@ -1139,7 +1139,7 @@ class Contact extends BaseModule
];
}
if (in_array($contact['network'], Protocol::FEDERATED)) {
if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
$contact_actions['updateprofile'] = [
'label' => DI::l10n()->t('Refetch contact data'),
'url' => 'contact/' . $contact['id'] . '/updateprofile',

View file

@ -128,8 +128,6 @@ class Advanced extends BaseModule
'$info' => $info,
'$returnaddr' => $returnaddr,
'$return' => DI::l10n()->t('Return to contact editor'),
'$update_profile' => in_array($contact['network'], Protocol::FEDERATED),
'$udprofilenow' => DI::l10n()->t('Refetch contact data'),
'$contact_id' => $contact['id'],
'$lbl_submit' => DI::l10n()->t('Submit'),