| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | |
| 6 | 6 | use function Activitypub\get_total_users; |
| 7 | 7 | use function Activitypub\get_active_users; |
| 8 | 8 | use function Activitypub\get_rest_url_by_path; |
| 9 | +use function Activitypub\get_masked_wp_version; | |
| 9 | 10 | |
| 10 | 11 | /** |
| 11 | 12 | * ActivityPub NodeInfo REST-Class |
| 12 | 13 | * |
| @@ -80,9 +81,9 @@ | ||
| 80 | 81 | |
| 81 | 82 | $nodeinfo['version'] = '2.0'; |
| 82 | 83 | $nodeinfo['software'] = array( |
| 83 | 84 | 'name' => 'wordpress', |
| 84 | - 'version' => \get_bloginfo( 'version' ), | |
| 85 | + 'version' => get_masked_wp_version(), | |
| 85 | 86 | ); |
| 86 | 87 | |
| 87 | 88 | $posts = \wp_count_posts(); |
| 88 | 89 | $comments = \wp_count_comments(); |
| @@ -128,14 +129,14 @@ | ||
| 128 | 129 | \do_action( 'activitypub_rest_nodeinfo2_pre' ); |
| 129 | 130 | |
| 130 | 131 | $nodeinfo = array(); |
| 131 | 132 | |
| 132 | - $nodeinfo['version'] = '1.0'; | |
| 133 | + $nodeinfo['version'] = '2.0'; | |
| 133 | 134 | $nodeinfo['server'] = array( |
| 134 | 135 | 'baseUrl' => \home_url( '/' ), |
| 135 | 136 | 'name' => \get_bloginfo( 'name' ), |
| 136 | 137 | 'software' => 'wordpress', |
| 137 | - 'version' => \get_bloginfo( 'version' ), | |
| 138 | + 'version' => get_masked_wp_version(), | |
| 138 | 139 | ); |
| 139 | 140 | |
| 140 | 141 | $posts = \wp_count_posts(); |
| 141 | 142 | $comments = \wp_count_comments(); |