PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.11.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.11.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | Modules/Migrations/Helpers/BPMigratorHelper.php +20 -0 2.7.72.11.0 View file →
@@ -621,8 +621,26 @@
621 621 }
622 622
623 623 public static function deleteCurrentData()
624 624 {
625 + // Capture an audit context before the wipe so this destructive erasure of member PII is
626 + // traceable (who/when/how much) and downstream modules can purge remote copies.
627 + $auditContext = [
628 + 'user_id' => get_current_user_id(),
629 + 'timestamp' => current_time('mysql'),
630 + 'counts' => [
631 + 'feeds' => \FluentCommunity\App\Models\Feed::count(),
632 + 'comments' => \FluentCommunity\App\Models\Comment::count(),
633 + 'reactions' => \FluentCommunity\App\Models\Reaction::count(),
634 + 'media' => \FluentCommunity\App\Models\Media::count(),
635 + 'activities' => \FluentCommunity\App\Models\Activity::count(),
636 + 'profiles' => \FluentCommunity\App\Models\XProfile::count(),
637 + 'spaces' => \FluentCommunity\App\Models\Space::where('type', 'community')->count(),
638 + ],
639 + ];
640 +
641 + do_action('fluent_community/migration/before_delete_current_data', $auditContext);
642 +
625 643 // delete the folder in uploads folder fluent-community with php please
626 644 $uploadDir = wp_upload_dir();
627 645 $fcomDir = $uploadDir['basedir'] . '/fluent-community';
628 646 if (is_dir($fcomDir)) {
@@ -646,8 +664,10 @@
646 664 delete_option('_bp_fcom_group_maps');
647 665 delete_option('_bp_fcom_last_post_id');
648 666 delete_option('_bp_fcom_last_user_id');
649 667 delete_option('_bp_fcom_last_migrated_member_id');
668 +
669 + do_action('fluent_community/migration/after_delete_current_data', $auditContext);
650 670 }
651 671
652 672 public static function getFcomSpaceIdByGroupId($bbGroupId)
653 673 {