From: cetra3 Date: Sat, 24 Jun 2023 03:26:49 +0000 (+0930) Subject: Remove federation worker count X-Git-Url: http://these/git/?a=commitdiff_plain;h=1b469d726971c3d3e43423e8884e5f4e74823fec;p=lemmy-ui.git Remove federation worker count --- diff --git a/src/shared/components/home/site-form.tsx b/src/shared/components/home/site-form.tsx index 33e7989..382f565 100644 --- a/src/shared/components/home/site-form.tsx +++ b/src/shared/components/home/site-form.tsx @@ -78,7 +78,6 @@ export class SiteForm extends Component { slur_filter_regex: ls.slur_filter_regex, actor_name_max_length: ls.actor_name_max_length, federation_enabled: ls.federation_enabled, - federation_worker_count: ls.federation_worker_count, captcha_enabled: ls.captcha_enabled, captcha_difficulty: ls.captcha_difficulty, allowed_instances: this.props.allowedInstances?.map(i => i.domain), @@ -554,27 +553,6 @@ export class SiteForm extends Component { -
- -
- -
-
)}
@@ -781,7 +759,6 @@ export class SiteForm extends Component { stateSiteForm.rate_limit_search_per_second, federation_enabled: stateSiteForm.federation_enabled, federation_debug: stateSiteForm.federation_debug, - federation_worker_count: stateSiteForm.federation_worker_count, captcha_enabled: stateSiteForm.captcha_enabled, captcha_difficulty: stateSiteForm.captcha_difficulty, allowed_instances: stateSiteForm.allowed_instances, @@ -982,14 +959,6 @@ export class SiteForm extends Component { i.setState(i.state); } - handleSiteFederationWorkerCount(i: SiteForm, event: any) { - i.setState( - s => ( - (s.siteForm.federation_worker_count = Number(event.target.value)), s - ) - ); - } - handleSiteCaptchaEnabled(i: SiteForm, event: any) { i.state.siteForm.captcha_enabled = event.target.checked; i.setState(i.state);