From fbb34e106b7164a9c1d47cf31d9803827540e228 Mon Sep 17 00:00:00 2001 From: Abhiseck Paira Date: Fri, 25 Feb 2022 20:15:48 +0530 Subject: auth: define variable mastodon-auth--user-unaware Hold the explanation string in the variable `mastodon-auth--user-unaware'. This explanation is provided to old mastodon.el users who are not aware of the 2FA related changes. --- lisp/mastodon-auth.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el index bad9e08..ba7bebe 100644 --- a/lisp/mastodon-auth.el +++ b/lisp/mastodon-auth.el @@ -70,6 +70,21 @@ if you are happy with unencryped storage use e.g. \"~/authinfo\"." (defvar mastodon-auth--acct-alist nil "Alist of account accts (name@domain) keyed by instance url.") +(defvar mastodon-auth--user-unaware + " ** MASTODON.EL - NOTICE ** + +It appears that you are not aware of the recent developments in +mastodon.el. In short we now require that you also set the +variable `mastodon-active-user' in your init file in addition to +`mastodon-instance-url'. + +Please see its documentation to understand what value it accepts +by running M-x describe-variable on it or visiting our web page: +https://codeberg.org/martianh/mastodon.el + +We apologize for the inconvenience. +") + (defun mastodon-auth--get-browser-login-url () "Return properly formed browser login url." (mastodon-http--append-query-string -- cgit v1.2.3