Bladeren bron

Update AdminSettings, add authorized_fetch setting

Daniel Supernault 11 maanden geleden
bovenliggende
commit
a7b1cc9988
1 gewijzigde bestanden met toevoegingen van 15 en 0 verwijderingen
  1. 15 0
      resources/assets/components/admin/AdminSettings.vue

+ 15 - 0
resources/assets/components/admin/AdminSettings.vue

@@ -63,6 +63,13 @@
                                             @change="handleChange($event, 'features', 'activitypub_enabled')"
                                         />
 
+                                        <checkbox
+                                            name="Authorized Fetch Mode"
+                                            :value="features.authorized_fetch"
+                                            description="Strictly enforce domain restrictions by enabling Authorized Fetch mode."
+                                            @change="handleChange($event, 'features', 'authorized_fetch')"
+                                        />
+
                                         <checkbox
                                             name="Account Migration"
                                             :value="features.account_migration"
@@ -93,6 +100,13 @@
                                             @change="handleChange($event, 'features', 'instagram_import')"
                                         />
 
+                                        <!-- <checkbox
+                                            name="Allowlist Mode"
+                                            :value="features.activitypub_enabled"
+                                            description="Permit interactions only with instances you specifically authorize, both for sending and receiving."
+                                            @change="handleChange($event, 'features', 'activitypub_enabled')"
+                                        /> -->
+
                                         <checkbox
                                             name="Spam detection"
                                             :value="features.autospam_enabled"
@@ -1268,6 +1282,7 @@
                     stories: this.features.stories,
                     instagram_import: this.features.instagram_import,
                     autospam_enabled: this.features.autospam_enabled,
+                    authorized_fetch: this.features.authorized_fetch,
                 }).then(res => {
                     this.isSubmitting = false;
                     this.isSubmittingTimeout = true;