mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix deleting a scheduled status immediately deleting media attachments (#9728)
This commit is contained in:
parent
1cbdf8d218
commit
86f27b178c
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class ScheduledStatus < ApplicationRecord
|
|||
DAILY_LIMIT = 25
|
||||
|
||||
belongs_to :account, inverse_of: :scheduled_statuses
|
||||
has_many :media_attachments, inverse_of: :scheduled_status, dependent: :destroy
|
||||
has_many :media_attachments, inverse_of: :scheduled_status, dependent: :nullify
|
||||
|
||||
validate :validate_future_date
|
||||
validate :validate_total_limit
|
||||
|
|
Loading…
Reference in a new issue