about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-03-08 08:20:49 +0100
committerGitHub <noreply@github.com>2018-03-08 08:20:49 +0100
commit510c9049c79f4eb1e082932ff067fdb4216d1039 (patch)
tree1960d57c4ac42004ba64e60843b947918bb0990c
parented902581d3d468c2e99a9ed262535b711d39e240 (diff)
For now, put a "." into no-text statuses with media for backcompat (#6691)
-rw-r--r--app/services/post_status_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index df38d16a6..c91192181 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -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,