Philipp 2 months ago
parent
commit
9207b9e408
No known key found for this signature in database GPG Key ID: 24A7501396EB5432
  1. 6
      src/Module/Contact/Profile.php
  2. 2
      view/templates/contact_edit.tpl
  3. 2
      view/theme/frio/templates/contact_edit.tpl
  4. 2
      view/theme/vier/templates/contact_edit.tpl

6
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 <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),

2
view/templates/contact_edit.tpl

@ -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}}

2
view/theme/frio/templates/contact_edit.tpl

@ -137,7 +137,7 @@
<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}}

2
view/theme/vier/templates/contact_edit.tpl

@ -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}}

Loading…
Cancel
Save