diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-21 20:21:52 +0200 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-08 03:37:07 -0500 |
commit | aff777343055b5b15fb757fda22912dc0fcd2c87 (patch) | |
tree | 5f2b5b17fce0291675d00a87c76b4d22572223d0 /app/services/post_status_service.rb | |
parent | 9d4f18b984d6699bdf96e5f5963edfe80063426c (diff) |
[Privacy, Port: glitch-soc@71b1d4c] Backend changes to allow handling local-only toots not based on emoji
Co-authored-by: Fire Demon <firedemon@creature.cafe>
Diffstat (limited to 'app/services/post_status_service.rb')
-rw-r--r-- | app/services/post_status_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 769b9aba0..216dedeac 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -13,6 +13,7 @@ class PostStatusService < BaseService # @option [Status] :thread Optional status to reply to # @option [Boolean] :sensitive # @option [String] :visibility + # @option [Boolean] :local_only # @option [String] :spoiler_text # @option [String] :title # @option [String] :footer @@ -215,6 +216,7 @@ class PostStatusService < BaseService title: @options[:title], footer: @options[:footer], visibility: @visibility, + local_only: @options[:local_only], language: language_from_option(@options[:language]) || @account.user&.setting_default_language&.presence || LanguageDetector.instance.detect(@text, @account), application: @options[:application], published: @options[:publish], |