| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit 7b51ffda41dbf40ed5c5830b4911c5a6cab68d4d.
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
fixes #264, where if you fave a toot then enter its thread, fave status is lost.
|
|/
|
|
| |
fixes #264, where if you fave a toot then enter its thread, fave status is lost.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
this user feedback prevents hitting 'n' running tl--more again before toots
have been appended, when what the user wanted was only to naviagate to the
next too after they'd been appended.
running tl--more before toots are appended causes a bug of appending the same
set of toots twice.
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
- make sure we get ID from parent if its a fave/boost
- avoid duplicates if user or booster already in mentions list
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | | |
Red_Starfish/mastodon-up.el:login into develop
Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/255
|
| | |
| | |
| | |
| | |
| | | |
The variable `mastodon-auth-source-file' serves no purpose so change it
from a defcustom to a defvar. Also update its docstring to document it.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Test for the situation when old mastodon.el users are unaware of the
variable `mastodon-active-user'.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Most old users of the mastodon.el wouldn't know about the introduction
of new variable `mastodon-active-user'[1]. Our goal is to make them
aware.
Set the default value of [1] to nil. This way we can know that the user
hasn't set [1] properly because user is unaware of it.
In the definition of `mastodon-auth--access-token', check [1]'s value
and if it's null, explain to the user about the new situation. Finally
signal the error "Variables not set properly".
We have considered the possibility of automating the process but since
the new login mechanism depends on setting [1] *in the init file*, the
only way to automate it would be to write to user's init file which we
consider to be very rude and shouldn't be done by this package.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of using the minibuffer prompt to present the explanation what
the user needs to do to get authorization code, use Emacs buffer and
Window. The minibuffer prompt should have 2-3 words.
This increases the readability of the explanation.
Of course delete explanation buffer and restore the window configuration
as it was after reading from minibuffer.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Change the name of the function `mastodon-auth--ask-authorization-code'
to `mastodon-auth--request-authorization-code'.
Suggested-by: Marty Hiatt <martianhiatus@riseup.net>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
mastodon.el currently follows the convention where all function names
should have two dashes (not one dash) in between function and namespace
names. Update all function names to follow this convention.
See issue #205 and pull request #255
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add the following tests:
* mastodon-client--current-user-active-p
* mastodon-client-store-access-token
* mastodon-client-make-user-active
* mastodon-client-form-user-from-vars
|
| | | |
|
| | |
| | |
| | |
| | | |
update the sample data in fixture/client.plstore file.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Merge `mastodon-client--store1' and `mastodon-client--store2' into a
single test `mastodon-client--store' that test the function with the
same name.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since the function `mastodon-auth--handle-token-response' now calls
`mastodon-client-store-access-token' and
`mastodon-client-make-user-active', define mock and stub for them
respectively.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove the tests `mastodon-auth--generate-token--no-storing-credentials'
and `mastodon-auth--generate-token--storing-credentials' as functions
with similar names no longer exist (due to implementation of the new
login mechanism)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The test `mastodon-client--register' specifies that the
`mastodon-http--post' be called with a specific value. The value it
specified is outdated since mastodon.el's current website has changed.
So update the value with URL of the current website.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Before tests start test/ert-helper.el file is loaded which in turn loads
other lisp/* files so that required functions and variables are defined
during tests.
Load lisp/mastodon.el file first before loading other files this solves
the complain during tests that `mastodon-active-user' is not defined.
|
| | |
| | |
| | |
| | | |
update the README to inform about the new changes.
|
| | |
| | |
| | |
| | |
| | | |
Update Copyright holder info for files that have undergone non trivial
changes.
|