]> cat aescling's git repositories - mastodon.git/commitdiff
Remove placeholder text for media-only toots (#7806)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 15 Jun 2018 13:51:51 +0000 (15:51 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Jun 2018 13:51:51 +0000 (15:51 +0200)
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.

app/services/post_status_service.rb

index d072e581d58e8ef7ecd726451fdb549bd568e517..a5a21c3592b5fd1bab82143987316dee49ef3df6 100644 (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,