Browse Source

For now, put a "." into no-text statuses with media for backcompat (#6691)

pull/4/head
Eugen Rochko 3 years ago
committed by GitHub
parent
commit
510c9049c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/services/post_status_service.rb

+ 1
- 0
app/services/post_status_service.rb View File

@ -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,

Loading…
Cancel
Save