mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
allow end user to recover a post they delete
automatically delete stubs after 1 day
This commit is contained in:
@ -208,6 +208,7 @@ ORDER BY p.created_at desc
|
||||
end
|
||||
|
||||
def self.synchronize_target_topic_ids(post_ids = nil)
|
||||
|
||||
builder = SqlBuilder.new("UPDATE user_actions
|
||||
SET target_topic_id = (select topic_id from posts where posts.id = target_post_id)
|
||||
/*where*/")
|
||||
|
Reference in New Issue
Block a user