From 21438b54bdaf3c557ec9ebbc482a2c418d8c64f8 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sun, 19 Jul 2020 18:50:24 -0500 Subject: [Feature] Add manual publishing option --- config/initializers/doorkeeper.rb | 1 + config/initializers/inflections.rb | 2 ++ config/locales/simple_form.en-MP.yml | 2 ++ config/routes.rb | 2 ++ 4 files changed, 7 insertions(+) (limited to 'config') diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index 0eee547ee..4394444bb 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -76,6 +76,7 @@ Doorkeeper.configure do :'write:notifications', :'write:reports', :'write:statuses', + :'write:statuses:publish', :read, :'read:accounts', :'read:blocks', diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index ebb7541eb..4170b69ba 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -22,4 +22,6 @@ ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.acronym 'Ed25519' inflect.singular 'data', 'data' + + inflect.irregular 'publish', 'publishing' end diff --git a/config/locales/simple_form.en-MP.yml b/config/locales/simple_form.en-MP.yml index 376ea7f9d..6d448c04d 100644 --- a/config/locales/simple_form.en-MP.yml +++ b/config/locales/simple_form.en-MP.yml @@ -24,6 +24,7 @@ en-MP: setting_default_content_type_console_html: Plain-text console formatting. setting_default_content_type_bbcode_html: "[b]Bold[/b], [u]Underline[/u], [i]Italic[/i], [code]Console[/code], ..." setting_default_language: The language of your roars can be detected automatically, but it's not always accurate + setting_manual_publish: This allows you to draft, proofread, and edit your roars before publishing them. You can publish a roar from its action menu (the three dots). setting_show_application: The application you use to toot will be displayed in the detailed view of your roars setting_skin: Reskins the selected UI flavour show_replies: Disable if you'd prefer your replies not be a part of your public profile @@ -46,6 +47,7 @@ en-MP: setting_display_media_show_all: Reveal all setting_expand_spoilers: Always expand roars marked with content warnings setting_favourite_modal: Show confirmation dialog before admiring (applies to Glitch flavour only) + setting_manual_publish: Manually publish roars setting_show_application: Disclose application used to send roars setting_use_pending_items: Relax mode show_replies: Show replies on profile diff --git a/config/routes.rb b/config/routes.rb index b0d064c35..6df812090 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -308,6 +308,8 @@ Rails.application.routes.draw do resource :pin, only: :create post :unpin, to: 'pins#destroy' + + resource :publish, only: :create end member do -- cgit