From b8b64229b0a26d56c938cce8b7635b99c0909f98 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Tue, 15 May 2018 23:13:52 +0900
Subject: [PATCH] Fix application name, and add comment for website
---
src/main/auth.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/auth.js b/src/main/auth.js
index 3d481abb..117fa8ba 100644
--- a/src/main/auth.js
+++ b/src/main/auth.js
@@ -1,6 +1,6 @@
import Mastodon from 'mastodon-api'
-const appName = 'whalebird'
+const appName = 'Whalebird'
const scope = 'read write follow'
export default class Authentication {
@@ -22,6 +22,7 @@ export default class Authentication {
async getAuthorizationUrl (domain = 'mastodon.social') {
this.setOtherInstance(domain)
+ // Waiting for merge this pull request: https://github.com/vanita5/mastodon-api/pull/8
const res = await Mastodon.createOAuthApp(this.baseURL + '/api/v1/apps', appName, scope)
this.clientId = res.client_id
this.clientSecret = res.client_secret