diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-17 20:18:52 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | 4b83bf5c08d58618dfa63b786016759eb5e4d6b6 (patch) | |
tree | 18d13486e7003cfb69452b66484dc09337236215 /app/services | |
parent | f0a34ccad762a34b153be108e7ba1b6c914317a5 (diff) |
[Feature] Post signatures
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 c6a983001..e790a643b 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -16,6 +16,7 @@ class PostStatusService < BaseService # @option [Boolean] :local_only # @option [String] :spoiler_text # @option [String] :title + # @option [String] :footer # @option [String] :language # @option [String] :scheduled_at # @option [Hash] :poll Optional poll to attach @@ -206,6 +207,7 @@ class PostStatusService < BaseService sensitive: @sensitive, spoiler_text: @options[:spoiler_text] || '', 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), diff --git a/app/services/update_status_service.rb b/app/services/update_status_service.rb index d0e61d153..355e8ca97 100644 --- a/app/services/update_status_service.rb +++ b/app/services/update_status_service.rb @@ -9,6 +9,7 @@ class UpdateStatusService < BaseService title text original_text + footer content_type language sensitive |