enable secure mode
This commit is contained in:
parent
656a2b0f44
commit
0b4bada2b6
2 changed files with 12 additions and 12 deletions
|
@ -144,15 +144,15 @@ class Admin {
|
|||
'default' => array( 'post', 'pages' ),
|
||||
)
|
||||
);
|
||||
// \register_setting(
|
||||
// 'activitypub',
|
||||
// 'activitypub_use_secure_mode',
|
||||
// array(
|
||||
// 'type' => 'boolean',
|
||||
// 'description' => \__( 'Secure mode allows blocking servers from fetching public activities', 'activitypub' ),
|
||||
// 'default' => 0,
|
||||
// )
|
||||
// );
|
||||
\register_setting(
|
||||
'activitypub',
|
||||
'activitypub_use_secure_mode',
|
||||
array(
|
||||
'type' => 'boolean',
|
||||
'description' => \__( 'Secure mode allows blocking servers from fetching public activities', 'activitypub' ),
|
||||
'default' => 0,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public static function schedule_migration() {
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- <table class="form-table">
|
||||
<table class="form-table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
|
@ -179,12 +179,12 @@
|
|||
</th>
|
||||
<td>
|
||||
<p>
|
||||
<label><input type="checkbox" name="activitypub_use_secure_mode" id="activitypub_use_secure_mode" value="1" <?php // echo \checked( '1', \get_option( 'activitypub_use_secure_mode', '0' ) ); ?> /> <?php echo wp_kses( \__( 'In secure mode every ActivityPub request must be signed. This disallows anonymous requests and prevents serving content to servers listed in the Blocklist.', 'activitypub' ), 'default' ); ?></label>
|
||||
<label><input type="checkbox" name="activitypub_use_secure_mode" id="activitypub_use_secure_mode" value="1" <?php echo \checked( '1', \get_option( 'activitypub_use_secure_mode', '0' ) ); ?> /> <?php echo wp_kses( \__( 'In secure mode every ActivityPub request must be signed. This disallows anonymous requests and prevents serving content to servers listed in the Blocklist.', 'activitypub' ), 'default' ); ?></label>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table> -->
|
||||
</table>
|
||||
|
||||
<?php \do_settings_fields( 'activitypub', 'server' ); ?>
|
||||
|
||||
|
|
Loading…
Reference in a new issue