Commit 155072aa authored by Eugen Rochko's avatar Eugen Rochko

Fix scopes

parent b95738a3
...@@ -249,7 +249,7 @@ Devise.setup do |config| ...@@ -249,7 +249,7 @@ Devise.setup do |config|
# up on your models and hooks. # up on your models and hooks.
config.omniauth :twitter, ENV['TWITTER_CLIENT_ID'], ENV['TWITTER_CLIENT_SECRET'] config.omniauth :twitter, ENV['TWITTER_CLIENT_ID'], ENV['TWITTER_CLIENT_SECRET']
config.omniauth :mastodon, authorize_options: { scope: 'read follow' }, credentials: lambda { |domain, callback_url| config.omniauth :mastodon, scope: 'read follow', credentials: lambda { |domain, callback_url|
client = MastodonClient.first_or_initialize(domain: domain) client = MastodonClient.first_or_initialize(domain: domain)
return [client.client_id, client.client_secret] unless client.new_record? return [client.client_id, client.client_secret] unless client.new_record?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment