Merge pull request #6450 from pixelfed/shleeable-patch-2

Bugfix: Update DeleteRemoteProfilePipeline.php - reported_profile_id IS NULL condition deleting unrelated reports
pull/6469/head
dansup 5 months ago committed by GitHub
commit 7fec015c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -134,7 +134,7 @@ class DeleteRemoteProfilePipeline implements ShouldQueue
});
// Delete reports
Report::whereProfileId($profile->id)->orWhere('reported_profile_id')->forceDelete();
Report::whereProfileId($pid)->orWhere('reported_profile_id', $pid)->forceDelete();
// Delete profile
Profile::findOrFail($profile->id)->delete();

Loading…
Cancel
Save