Add status expiration
This commit is contained in:
parent
57c12e4fad
commit
16079b4db5
11 changed files with 120 additions and 1 deletions
|
@ -30,6 +30,7 @@ class UpdateStatusService < BaseService
|
|||
update_media_attachments! if @options.key?(:media_ids)
|
||||
update_poll! if @options.key?(:poll)
|
||||
update_immediate_attributes!
|
||||
update_expiration!
|
||||
create_edit! unless @options[:no_history]
|
||||
end
|
||||
|
||||
|
@ -122,6 +123,10 @@ class UpdateStatusService < BaseService
|
|||
@status.save!
|
||||
end
|
||||
|
||||
def update_expiration!
|
||||
UpdateStatusExpirationService.new.call(@status)
|
||||
end
|
||||
|
||||
def reset_preview_card!
|
||||
return unless @status.text_previously_changed?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue