mirror of
https://github.com/mastodon/mastodon.git
synced 2026-07-28 23:37:49 -05:00
Fix CW being copied to body when editing quote posts with empty text (#39823)
This commit is contained in:
parent
7628d411e2
commit
486753bbfe
|
|
@ -111,7 +111,7 @@ class UpdateStatusService < BaseService
|
|||
end
|
||||
|
||||
def update_immediate_attributes!
|
||||
@status.text = @options[:text].presence || @options.delete(:spoiler_text) || '' if @options.key?(:text)
|
||||
@status.text = @options[:text].presence || @options.delete(:spoiler_text) || '' if @options.key?(:text) && @status.quote.blank?
|
||||
@status.spoiler_text = @options[:spoiler_text] || '' if @options.key?(:spoiler_text)
|
||||
@status.sensitive = @options[:sensitive] || @options[:spoiler_text].present? if @options.key?(:sensitive) || @options.key?(:spoiler_text)
|
||||
@status.language = valid_locale_cascade(@options[:language], @status.language, @status.account.user&.preferred_posting_language, I18n.default_locale)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user