Add blue sky as a syndication source

This commit is contained in:
2023-11-06 18:06:47 +11:00
parent 1be98a056a
commit 2cccd2d99a
11 changed files with 108 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Hanami.app.register_provider :clients, namespace: true do
start do
register "mastodon", Adamantium::Client::Mastodon.new
register "blue_sky", Adamantium::Client::BlueSky.new
register "omdb", Adamantium::Client::Omdb.new(api_key: target["settings"].omdb_api_key)
end
end

View File

@@ -1,6 +1,7 @@
Hanami.app.register_provider :syndication, namespace: true do
start do
register "mastodon", Adamantium::Syndication::Mastodon.new
register "blue_sky", Adamantium::Syndication::BlueSky.new
register "raindrop", Adamantium::Syndication::Raindrop.new(api_key: "Bearer #{target["settings"].raindrop_api_key}")
register "dayone", Adamantium::Syndication::Dayone.new(
username: target["settings"].smtp_username,

View File

@@ -22,6 +22,10 @@ module Adamantium
setting :mastodon_url, default: nil
setting :fed_bridge_url, default: nil
setting :blue_sky_url, default: nil
setting :blue_sky_username, default: nil
setting :blue_sky_password, default: nil
setting :webmention_url, default: nil
setting :pingback_url, default: nil
setting :webmention_token, default: nil