diff options
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/post_status_service.rb | 2 | ||||
-rw-r--r-- | app/services/update_status_service.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index aef630f71..33440a5a4 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -15,6 +15,7 @@ class PostStatusService < BaseService # @option [String] :visibility # @option [Boolean] :local_only # @option [String] :spoiler_text + # @option [String] :title # @option [String] :language # @option [String] :scheduled_at # @option [Hash] :poll Optional poll to attach @@ -200,6 +201,7 @@ class PostStatusService < BaseService poll_attributes: poll_attributes, sensitive: @sensitive, spoiler_text: @options[:spoiler_text] || '', + title: @options[:title], visibility: @visibility, local_only: @options[:local_only], language: language_from_option(@options[:language]) || @account.user&.setting_default_language&.presence || LanguageDetector.instance.detect(@text, @account), diff --git a/app/services/update_status_service.rb b/app/services/update_status_service.rb index f59f26a25..18fee3e17 100644 --- a/app/services/update_status_service.rb +++ b/app/services/update_status_service.rb @@ -6,6 +6,7 @@ class UpdateStatusService < BaseService ALLOWED_ATTRIBUTES = %i( spoiler_text + title text content_type language |