Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2923

[3.3.x] Support Forum • Soft delete posts

$
0
0
I run this query in my database to bulk soft delete posts of a specific user.

Code:

SET @TARGET_USER := 100;   -- user_id to wipe test_userSET @ADMIN_USER  := 2;      -- your own user_id-- Mark every post as soft-deletedUPDATE phpbb_postsSET  post_visibility   = 2,               -- = ITEM_DELETED     post_delete_user  = @ADMIN_USER,     post_delete_time  = UNIX_TIMESTAMP(),     post_delete_reason= 'Bulk soft delete'WHERE poster_id = @TARGET_USER  AND post_visibility <> 2;
and the problem is that some users when they tap the "last unread post" they transferred some posts or some pages before the last unread post.
Am I missing something ?

Statistics: Posted by gvp9000 — Mon Jun 23, 2025 7:35 am



Viewing all articles
Browse latest Browse all 2923

Latest Images

Trending Articles



Latest Images