From f697b2328504cb53c6c625c78578bd503e6a6564 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 13 May 2023 21:08:41 +1000 Subject: [PATCH] Add shortcut support --- app/action.rb | 1 + config/settings.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/action.rb b/app/action.rb index 725967f..6218674 100644 --- a/app/action.rb +++ b/app/action.rb @@ -54,6 +54,7 @@ module Adamantium private def verify_token(access_token) + return %i[create update delete undelete media] if settings.shortcut_key == access_token return %i[create update delete undelete media] if Hanami.env == :development || Hanami.env == :test resp = HTTParty.get(settings.micropub_token_endpoint, { diff --git a/config/settings.rb b/config/settings.rb index b5e667f..f3afa9f 100644 --- a/config/settings.rb +++ b/config/settings.rb @@ -30,6 +30,8 @@ module Adamantium setting :omdb_api_key, default: nil + setting :shortcut_key, default: nil + setting :from_email, default: nil setting :dayone_email, default: nil