| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | |
| 10 | 10 | use Activitypub\Activity\Activity; |
| 11 | 11 | use Activitypub\Collection\Actors; |
| 12 | 12 | use Activitypub\Collection\Outbox; |
| 13 | -use Activitypub\Collection\Remote_Posts; | |
| 13 | +use Activitypub\Collection\Posts; | |
| 14 | 14 | |
| 15 | 15 | use function Activitypub\add_to_outbox; |
| 16 | 16 | |
| 17 | 17 | /** |
| @@ -106,9 +106,9 @@ | ||
| 106 | 106 | |
| 107 | 107 | $processed = $this->process_user_deletions( $user_ids ); |
| 108 | 108 | |
| 109 | 109 | // Delete all remote posts. |
| 110 | - $deleted_posts = Remote_Posts::delete_all(); | |
| 110 | + $deleted_posts = Posts::delete_all(); | |
| 111 | 111 | if ( $deleted_posts > 0 ) { |
| 112 | 112 | \WP_CLI::line( \WP_CLI::colorize( "%G✓%n Deleted {$deleted_posts} remote post(s)." ) ); |
| 113 | 113 | } |
| 114 | 114 | |
| @@ -274,9 +274,9 @@ | ||
| 274 | 274 | ) |
| 275 | 275 | ); |
| 276 | 276 | |
| 277 | 277 | // Get count of pending Delete activities. |
| 278 | - $pending_count = \count( $pending_deletes ); | |
| 278 | + $pending_count = count( $pending_deletes ); | |
| 279 | 279 | |
| 280 | 280 | // If no more pending Delete activities, self-destruct is complete. |
| 281 | 281 | if ( 0 === $pending_count ) { |
| 282 | 282 | \WP_CLI::line( \WP_CLI::colorize( '%G✅ Status: COMPLETED%n' ) ); |