]> git.mxchange.org Git - friendica.git/commitdiff
Fixing https://github.com/friendica/friendica/issues/11033
authorPhilipp <admin@philipp.info>
Sat, 27 Nov 2021 12:48:05 +0000 (13:48 +0100)
committerPhilipp <admin@philipp.info>
Sat, 27 Nov 2021 12:48:05 +0000 (13:48 +0100)
src/Module/Contact/Profile.php
view/templates/contact_edit.tpl
view/theme/frio/templates/contact_edit.tpl
view/theme/vier/templates/contact_edit.tpl

index 660feaea93db8429b2f15fb2fb8970b3f1dfd691..768ac4e959e07e2d60c5503ec3ac12dce8d8925e 100644 (file)
@@ -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 <strong>may</strong> 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),
index 84384c4795cc07f9e7b2250245b6c16d9cec8d16..18a16ddfc374398e5508f8947270608a6f800c81 100644 (file)
@@ -65,7 +65,7 @@
                                <input type="hidden" name="contact_id" value="{{$contact_id}}">
 
                                        <div id="contact-edit-end"></div>
-                                       {{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}}
index 2085792c75957b4b8c9dde8b292465f24e35f384..5353801ee57257630ba86e0c3529490724aca80a 100644 (file)
 
                                                                <input type="hidden" name="contact_id" value="{{$contact_id}}">
 
-                                                               {{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}}
index 32552942e769779d4c4de131d1ec5e6c0fab298d..6bf958a2305dd77289dd70a2d9eab0c5e016e0f9 100644 (file)
@@ -66,7 +66,7 @@
                                <input type="hidden" name="contact_id" value="{{$contact_id}}">
 
                                        <div id="contact-edit-end"></div>
-                                       {{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}}