From 681ac8580af1e702007f5aaa7d6820f76f0064a1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 15 Jun 2018 15:51:51 +0200 Subject: [PATCH] Remove placeholder text for media-only toots (#7806) Ref: 0c2a08adeb3d45f66f53e6b0cb0807511327e8b0 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index d072e581d5..a5a21c3592 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,