Remove placeholder text for media-only toots (#7806)

Ref: 0c2a08adeb

This breaks compatibility with pre-2.3.0 Mastodon and older
software, but at the time of writing the network is >80% above
that version.

Compatibility broken only for toots with no text.
lolsob-rspec
Eugen Rochko 2018-06-15 15:51:51 +02:00 committed by GitHub
parent a21c8a2e0e
commit 681ac8580a
1 changed files with 0 additions and 1 deletions

View File

@ -22,7 +22,6 @@ 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.present?
ApplicationRecord.transaction do
status = account.statuses.create!(text: text,