From 2533bd51a96d1b7ae07f524ca5a10ba386e76b32 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 30 Mar 2022 22:41:48 -0600 Subject: [PATCH] Update DeleteAccountPipeline, fix typo --- app/Jobs/DeletePipeline/DeleteAccountPipeline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/DeletePipeline/DeleteAccountPipeline.php b/app/Jobs/DeletePipeline/DeleteAccountPipeline.php index d53752da4..76e3b4938 100644 --- a/app/Jobs/DeletePipeline/DeleteAccountPipeline.php +++ b/app/Jobs/DeletePipeline/DeleteAccountPipeline.php @@ -119,7 +119,7 @@ class DeleteAccountPipeline implements ShouldQueue Bookmark::whereProfileId($id)->forceDelete(); EmailVerification::whereUserId($user->id)->forceDelete(); StatusHashtag::whereProfileId($id)->delete(); - DirectMessage::whereFromId($id)->orWhereToId($id)->delete(); + DirectMessage::whereFromId($id)->orWhere('to_id', $id)->delete(); StatusArchived::whereProfileId($id)->delete(); UserPronoun::whereProfileId($id)->delete(); FollowRequest::whereFollowingId($id)