瀏覽代碼

Update DeleteAccountPipeline to delete StatusHashtags

Daniel Supernault 6 年之前
父節點
當前提交
76c480bf85
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Jobs/DeletePipeline/DeleteAccountPipeline.php

+ 3 - 1
app/Jobs/DeletePipeline/DeleteAccountPipeline.php

@@ -80,8 +80,10 @@ class DeleteAccountPipeline implements ShouldQueue
             Bookmark::whereProfileId($user->profile->id)->forceDelete();
 
             EmailVerification::whereUserId($user->id)->forceDelete();
-
             $id = $user->profile->id;
+
+            StatusHashtag::whereProfileId($id)->delete();
+            
             FollowRequest::whereFollowingId($id)->orWhere('follower_id', $id)->forceDelete();
 
             Follower::whereProfileId($id)->orWhere('following_id', $id)->forceDelete();