diff --git a/src/Module/Contact/Profile.php b/src/Module/Contact/Profile.php index 660feaea93..768ac4e959 100644 --- a/src/Module/Contact/Profile.php +++ b/src/Module/Contact/Profile.php @@ -94,8 +94,8 @@ class Profile extends BaseModule $fields['hidden'] = !empty($_POST['hidden']); } - if (isset($_POST['notify'])) { - $fields['notify'] = !empty($_POST['notify']); + if (isset($_POST['notify_new_posts'])) { + $fields['notify_new_posts'] = !empty($_POST['notify_new_posts']); } if (isset($_POST['fetch_further_information'])) { @@ -355,7 +355,7 @@ class Profile extends BaseModule '$archived' => ($contact['archive'] ? $this->t('Currently archived') : ''), '$pending' => ($contact['pending'] ? $this->t('Awaiting connection acknowledge') : ''), '$hidden' => ['hidden', $this->t('Hide this contact from others'), $localRelationship->hidden, $this->t('Replies/likes to your public posts may still be visible')], - '$notify' => ['notify', $this->t('Notification for new posts'), ($contact['notify_new_posts'] == 1), $this->t('Send a notification of every new post of this contact')], + 'notify_new_posts' => ['notify_new_posts', $this->t('Notification for new posts'), ($localRelationship->notifyNewPosts), $this->t('Send a notification of every new post of this contact')], '$fetch_further_information' => $fetch_further_information, '$ffi_keyword_denylist' => ['ffi_keyword_denylist', $this->t('Keyword Deny List'), $localRelationship->ffiKeywordDenylist, $this->t('Comma separated list of keywords that should not be converted to hashtags, when "Fetch information and keywords" is selected')], '$photo' => Contact::getPhoto($contact), diff --git a/view/templates/contact_edit.tpl b/view/templates/contact_edit.tpl index 84384c4795..18a16ddfc3 100644 --- a/view/templates/contact_edit.tpl +++ b/view/templates/contact_edit.tpl @@ -65,7 +65,7 @@
- {{include file="field_checkbox.tpl" field=$notify}} + {{include file="field_checkbox.tpl" field=$notify_new_posts}} {{if $fetch_further_information}} {{include file="field_select.tpl" field=$fetch_further_information}} {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}} diff --git a/view/theme/frio/templates/contact_edit.tpl b/view/theme/frio/templates/contact_edit.tpl index 2085792c75..5353801ee5 100644 --- a/view/theme/frio/templates/contact_edit.tpl +++ b/view/theme/frio/templates/contact_edit.tpl @@ -137,7 +137,7 @@ - {{include file="field_checkbox.tpl" field=$notify}} + {{include file="field_checkbox.tpl" field=$notify_new_posts}} {{if $fetch_further_information}} {{include file="field_select.tpl" field=$fetch_further_information}} {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}} diff --git a/view/theme/vier/templates/contact_edit.tpl b/view/theme/vier/templates/contact_edit.tpl index 32552942e7..6bf958a230 100644 --- a/view/theme/vier/templates/contact_edit.tpl +++ b/view/theme/vier/templates/contact_edit.tpl @@ -66,7 +66,7 @@
- {{include file="field_checkbox.tpl" field=$notify}} + {{include file="field_checkbox.tpl" field=$notify_new_posts}} {{if $fetch_further_information}} {{include file="field_select.tpl" field=$fetch_further_information}} {{if $fetch_further_information.2 == 2 || $fetch_further_information.2 == 3}} {{include file="field_textarea.tpl" field=$ffi_keyword_denylist}} {{/if}}