Skip to content
Snippets Groups Projects
Unverified Commit 510c9049 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent ed902581
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment