Refactor syndication

This commit is contained in:
2023-04-09 20:30:04 +10:00
parent d22edceadc
commit 4544baddd6
10 changed files with 553 additions and 299 deletions

View File

@@ -1,7 +1,7 @@
Hanami.app.register_provider :syndication, namespace: true do
start do
register "mastodon", Adamantium::Syndication::Mastodon.new
register "pinboard", Adamantium::Syndication::Pinboard.new(api_key: target["settings"].pinboard_api_key)
register "raindrop", Adamantium::Syndication::Raindrop.new(api_key: target["settings"].raindrop_api_key)
register "dayone", Adamantium::Syndication::Dayone.new(
username: target["settings"].smtp_username,
password: target["settings"].smtp_password,