logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 510c9049c79f4eb1e082932ff067fdb4216d1039
parent: ed902581d3d468c2e99a9ed262535b711d39e240
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Thu,  8 Mar 2018 08:20:49 +0100

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


Diffstat:

Mapp/services/post_status_service.rb1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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,