diff options
author | r <r@freesoftwareextremist.com> | 2019-12-17 20:17:25 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-17 20:17:25 +0000 |
commit | 59aad78f66cf58be7f88f2c0675f94a858163560 (patch) | |
tree | 95f00d18a8c847cdf4ee587e412de26960770a28 /service/auth.go | |
parent | 3b50f40c081c499c2ecb8913b54186c622561d76 (diff) | |
download | bloat-59aad78f66cf58be7f88f2c0675f94a858163560.tar.gz bloat-59aad78f66cf58be7f88f2c0675f94a858163560.zip |
Use filesystem based kv store instead of sqlite
Diffstat (limited to 'service/auth.go')
-rw-r--r-- | service/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/auth.go b/service/auth.go index e9bec38..38c0a43 100644 --- a/service/auth.go +++ b/service/auth.go @@ -40,12 +40,12 @@ func (s *authService) getClient(ctx context.Context) (c *mastodon.Client, err er if err != nil { return nil, ErrInvalidSession } - client, err := s.appRepo.Get(session.InstanceURL) + client, err := s.appRepo.Get(session.InstanceDomain) if err != nil { return } c = mastodon.NewClient(&mastodon.Config{ - Server: session.InstanceURL, + Server: client.InstanceURL, ClientID: client.ClientID, ClientSecret: client.ClientSecret, AccessToken: session.AccessToken, |