Fix clear_histories with removing image files
This commit is contained in:
parent
bbfc45fa68
commit
0bc970aa00
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ class UpdateStatusService < BaseService
|
|||
end
|
||||
|
||||
def clear_histories!
|
||||
MediaAttachment.where(status_id: @status.id).destroy_all unless @status.with_media?
|
||||
@status.edits.destroy_all
|
||||
@status.edited_at = nil
|
||||
@status.save!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue