diff options
author | David Yip <yipdw@member.fsf.org> | 2018-05-14 14:14:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 14:14:00 -0500 |
commit | b5684e987484661ba63fc9815c03667a8a93586e (patch) | |
tree | 755476fb27484fb36bd01578f8f22d4dd8d64562 /app/services/post_status_service.rb | |
parent | 46659655439e7d76726aa38ed5d599a795b3790f (diff) | |
parent | ba7ee67498905cbc96d531d45a80e284880e09ee (diff) |
Merge pull request #481 from ThibG/glitch-soc/merge
Merge upstream changes
Diffstat (limited to 'app/services/post_status_service.rb')
-rw-r--r-- | app/services/post_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 6eb233f9d..b1d5bd3a7 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -22,7 +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? + text = '.' if text.blank? && media.present? ApplicationRecord.transaction do status = account.statuses.create!(text: text, |