Add Mastodon API service class, auth token config

Add a new REST API service class to keep things DRY
This commit is contained in:
2025-05-17 14:17:57 +04:00
parent c43e43d89c
commit f0cfde560b
6 changed files with 68 additions and 15 deletions

View File

@@ -11,6 +11,9 @@ module Settings
field :mastodon_address_domain, type: :string,
default: ENV["MASTODON_ADDRESS_DOMAIN"].presence || self.primary_domain
field :mastodon_auth_token, type: :string,
default: ENV["MASTODON_AUTH_TOKEN"].presence
end
end
end