Code cleanup

This commit is contained in:
Alex Kirk 2022-12-10 12:48:55 +01:00
parent 995c6c714d
commit 0506e85aa6

View file

@ -489,14 +489,14 @@ class Friends_Feed_Parser_ActivityPub extends \Friends\Feed_Parser {
if ( ! $has_activitypub_feed ) { if ( ! $has_activitypub_feed ) {
return; return;
} }
$show_replies = $friend->get_user_option( 'activitypub_friends_show_replies' );
?> ?>
<tr> <tr>
<th>ActivityPub</th> <th>ActivityPub</th>
<td> <td>
<fieldset> <fieldset>
<div> <div>
<input type="checkbox" name="friends_show_replies" id="friends_show_replies" value="1" <?php checked( '1', $show_replies ); ?> /> <input type="checkbox" name="friends_show_replies" id="friends_show_replies" value="1" <?php checked( '1', $friend->get_user_option( 'activitypub_friends_show_replies' ) ); ?> />
<label for="friends_show_replies"><?php esc_html_e( "Don't hide @mentions of others", 'activitypub' ); ?></label> <label for="friends_show_replies"><?php esc_html_e( "Don't hide @mentions of others", 'activitypub' ); ?></label>
</div> </div>
</fieldset> </fieldset>
@ -507,7 +507,7 @@ class Friends_Feed_Parser_ActivityPub extends \Friends\Feed_Parser {
</p> </p>
</td> </td>
</tr> </tr>
<?php <?php
} }
/** /**