mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
For now, put a "." into no-text statuses with media for backcompat (#6691)
This commit is contained in:
parent
ed902581d3
commit
510c9049c7
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class PostStatusService < BaseService
|
|||
media = validate_media!(options[:media_ids])
|
||||
status = nil
|
||||
text = options.delete(:spoiler_text) if text.blank? && options[:spoiler_text].present?
|
||||
text = '.' if text.blank? && !media.empty?
|
||||
|
||||
ApplicationRecord.transaction do
|
||||
status = account.statuses.create!(text: text,
|
||||
|
|
Loading…
Reference in a new issue