From 50f0729dba11a95f40869844d32d89e0924afcc6 Mon Sep 17 00:00:00 2001
From: Johnson Denen <johnson.denen@gmail.com>
Date: Sun, 9 Apr 2017 19:24:15 -0400
Subject: Fix #1 by adding scope to auth token request

---
 lisp/mastodon-auth.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'lisp')

diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el
index 06d7685..d01f687 100644
--- a/lisp/mastodon-auth.el
+++ b/lisp/mastodon-auth.el
@@ -84,7 +84,8 @@ Email address and password are not stored."
                          ("client_secret" . ,(plist-get (mastodon--client-app) :client_secret))
                          ("grant_type" . "password")
                          ("username" . ,(read-string "Email: "))
-                         ("password" . ,(read-passwd "Password: ")))))
+                         ("password" . ,(read-passwd "Password: "))
+                         ("scope" . "read write follow"))))
 
 (defun mastodon--access-token ()
   "Returns `mastodon--api-token-string'.
-- 
cgit v1.2.3