posts: move expunged image to trash folder.
When a post is expunged, move the image to a trash folder so it can be recovered if needed.
This commit is contained in:
@@ -756,7 +756,7 @@ class Post < ApplicationRecord
|
||||
decrement_tag_post_counts
|
||||
remove_from_all_pools
|
||||
remove_from_fav_groups
|
||||
media_asset.expunge!
|
||||
media_asset.trash!
|
||||
destroy
|
||||
update_parent_on_destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user