Add option for default toot content-type

This commit is contained in:
Thibaut Girka
2019-05-13 14:42:39 +02:00
committed by ThibG
parent 0be93820f3
commit a6b7c23f6f
7 changed files with 18 additions and 2 deletions

View File

@@ -168,7 +168,7 @@ class PostStatusService < BaseService
visibility: @visibility,
language: language_from_option(@options[:language]) || @account.user&.setting_default_language&.presence || LanguageDetector.instance.detect(@text, @account),
application: @options[:application],
content_type: @options[:content_type],
content_type: @options[:content_type] || @account.user&.setting_default_content_type,
}.compact
end