diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-06-15 15:51:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 15:51:51 +0200 |
commit | c3b3594305f4480b02177f4f90d134eb63c8f873 (patch) | |
tree | ada829617e38d237dfed316fe9d9d72d468f02b7 /app/services | |
parent | 1cc775200eab449c90e1ebb463ee19ee76c2935b (diff) |
Remove placeholder text for media-only toots (#7806)
Ref: cfa9b6e13ab3c434f3901df6f614d0aa94a3d1ed 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.
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/post_status_service.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index d072e581d..a5a21c359 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -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, |