Skip to content

Commit f689752

Browse files
committed
Remove relay mode setting from advanced settings
Eliminates the relay mode field and its rendering logic from the advanced settings. This simplifies the settings interface and removes the option to enable relay mode via the admin panel.
1 parent ffa935e commit f689752

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

includes/wp-admin/class-advanced-settings-fields.php

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,6 @@ public static function register_advanced_fields() {
8787
'activitypub_advanced_settings',
8888
array( 'label_for' => 'activitypub_object_type' )
8989
);
90-
91-
\add_settings_field(
92-
'activitypub_relay_mode',
93-
\__( 'Relay Mode', 'activitypub' ),
94-
array( self::class, 'render_relay_mode_field' ),
95-
'activitypub_advanced_settings',
96-
'activitypub_advanced_settings',
97-
array( 'label_for' => 'activitypub_relay_mode' )
98-
);
9990
}
10091

10192
/**
@@ -230,32 +221,4 @@ public static function render_object_type_field() {
230221
</p>
231222
<?php
232223
}
233-
234-
/**
235-
* Render Relay Mode field.
236-
*/
237-
public static function render_relay_mode_field() {
238-
$value = \get_option( 'activitypub_relay_mode', '0' );
239-
?>
240-
<p>
241-
<label>
242-
<input type="checkbox" id="activitypub_relay_mode" name="activitypub_relay_mode" value="1" <?php \checked( '1', $value ); ?> />
243-
<?php \esc_html_e( 'Enable relay mode to forward public activities to all followers.', 'activitypub' ); ?>
244-
</label>
245-
</p>
246-
<p class="description">
247-
<?php \esc_html_e( '⚠ When enabled, this site will act as an ActivityPub relay, automatically forwarding all public activities it receives to all followers. This will:', 'activitypub' ); ?>
248-
</p>
249-
<ul class="description" style="list-style-type: disc; margin-left: 2em;">
250-
<li><?php \esc_html_e( 'Switch to blog-only mode (individual author federation will be disabled)', 'activitypub' ); ?></li>
251-
<li><?php \esc_html_e( 'Change the blog username to "relay"', 'activitypub' ); ?></li>
252-
<li><?php \esc_html_e( 'Change the blog actor type to "Service"', 'activitypub' ); ?></li>
253-
<li><?php \esc_html_e( 'Significantly increase server resources usage', 'activitypub' ); ?></li>
254-
<li><?php \esc_html_e( 'Forward all public activities received from followers to all other followers', 'activitypub' ); ?></li>
255-
</ul>
256-
<p class="description">
257-
<?php \esc_html_e( 'Domain blocklist and other moderation settings will still apply. Only enable this if you understand the implications and have adequate server resources.', 'activitypub' ); ?>
258-
</p>
259-
<?php
260-
}
261224
}

0 commit comments

Comments
 (0)