aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * copy url of toot at pointmousebot2021-05-131-0/+11
| |
| * message when loading timelines and profilesmousebot2021-05-132-2/+9
| |
| * implmement mentioning boosters in replies by defaultmousebot2021-05-131-4/+22
| |
| * change search results order: statuses, users, hashtagsmousebot2021-05-121-6/+6
| |
| * add basic search functionsmousebot2021-05-113-2/+150
| |
| * add my profile functionmousebot2021-05-103-1/+7
| |
| * async view profile, async view thread, better promptsmousebot2021-05-093-20/+31
| | | | | | | | | | | | - view profile (using make-profile-buffer-for). - user confirm to delete toot. - better follow/mute/block/profile prompts
| * Rewrite `mastodon-auth--access-token` so it handles errors.Ian Eure2021-05-092-7/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, `mastodon-auth--access-token` unconditionally returns the value of the `:access_token` key from the response of `(mastodon-auth--get-token)`. This causes problems when there was an error getting the token, for example, if you enter the wrong password. If a token couldn’t be retrieved, the JSON looks like: (:error "invalid_grant" :error_description "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.") Since there is no `:access_token` key, `mastodon-auth--access-token` returns `nil`, which results in a broken header in the next request: Authorization: Bearer Which causes the whole thing to freeze Emacs until you mash `C-g`. This commit rewrites the function to handle that case; to explicitly signal an error for *any* response that isn’t expected; to use `if-let`, which allows the temporary `token` variable to be eliminated; uses `pcase` to determine what kind of response was received; and adds ERT tests for all these cases.
| * Guard against the old version of Emacs which mastodon.el supports.Ian Eure2021-05-091-3/+7
| |
| * SWAG at moving to an async network model.Ian Eure2021-05-092-43/+95
| |
| * Set a HTTP timeout.mousebot2021-05-091-2/+5
| | | | | | | | This prevents mastodon.el from locking Emacs and spinning forever.
| * mute/unmute, block/unblock funs and bindingsmousebot2021-05-082-2/+103
| |
| * unfollow user funmousebot2021-05-082-1/+27
| |
| * indent toots/foll/following on profilemousebot2021-05-081-1/+1
| |
| * add toot/follows/followers counts to profile buffermousebot2021-05-081-1/+11
| |
| * re-write follow-user fun with completing readmousebot2021-05-081-12/+20
| |
| * follow user bindingmousebot2021-05-071-0/+1
| |
| * follow user or booster of toot at point funmousebot2021-05-071-0/+17
| |
| * move profile mode map bindings to free up 'f'/'F'mousebot2021-05-071-2/+2
| | | | | | | | - this way you can favorite posts when viewing a profile
| * fix newlines before after postsmousebot2021-05-071-4/+5
| |
| * restore newline btw post body and bylinemousebot2021-05-071-0/+1
| |
| * cherry pick ieure's cosmetic changesmousebot2021-05-072-6/+6
| |
| * docstringmousebot2021-05-061-1/+1
| |
| * delete toot keybindingmousebot2021-05-061-0/+2
| |
| * add delete toot functionmousebot2021-05-062-0/+22
| |
* | apply pleroma patch from #208mousebot2021-12-231-0/+2
| |
* | Merge pull request #230 from ieure/ieure/http-timeoutsmooseyboots2021-12-211-2/+9
|\ \ | | | | | | Set a HTTP timeout.
| * | Guard against the old version of Emacs which mastodon.el supports.Ian Eure2020-05-031-3/+7
| | |
| * | Set a HTTP timeout.Ian Eure2020-05-031-2/+5
| |/ | | | | | | This prevents mastodon.el from locking Emacs and spinning forever.
* | Merge pull request #231 from ieure/handle-auth-errorsmooseyboots2021-12-212-7/+63
|\ \ | | | | | | Rewrite `mastodon-auth--access-token` so it handles errors.
| * | Rewrite `mastodon-auth--access-token` so it handles errors.Ian Eure2020-05-032-7/+63
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, `mastodon-auth--access-token` unconditionally returns the value of the `:access_token` key from the response of `(mastodon-auth--get-token)`. This causes problems when there was an error getting the token, for example, if you enter the wrong password. If a token couldn’t be retrieved, the JSON looks like: (:error "invalid_grant" :error_description "The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.") Since there is no `:access_token` key, `mastodon-auth--access-token` returns `nil`, which results in a broken header in the next request: Authorization: Bearer Which causes the whole thing to freeze Emacs until you mash `C-g`. This commit rewrites the function to handle that case; to explicitly signal an error for *any* response that isn’t expected; to use `if-let`, which allows the temporary `token` variable to be eliminated; uses `pcase` to determine what kind of response was received; and adds ERT tests for all these cases.
* | Merge pull request #241 from mooseyboots/toot-fixmooseyboots2021-12-211-0/+1
|\ \ | |/ |/| Fix: make after-change-functions buffer local.
| * Fix: make after-change-functions buffer local.mousebot2021-10-041-0/+1
|/ | | | See issue #218 — we mistakenly modified the global value and `mastodon-toot--update-status-fields` makes no sense outside the toot compose buffer.
* Update copyright and bump versionJohnson Denen2019-03-0411-19/+19
|
* Update discover function with new keybindingsJohnson Denen2019-03-041-7/+7
|
* Update README for keybinding changesJohnson Denen2019-03-041-34/+30
|
* Close #199 with keybinding refactorJohnson Denen2019-03-041-16/+18
|
* Update READMEJohnson Denen2019-03-041-3/+10
|
* Refactor mastodon-discover functionalityJohnson Denen2019-03-042-31/+32
|
* Fix #219 no `with-eval-after-load` in the code (#220)H Durer2019-03-043-32/+78
| | | | The package-lint logic is too daft to cope with this (you cannot even mention it in a comment). We now move the discover functionality into its own package and just mention in the README file how to make use of it.
* Explitly require json.el in files where we dynamically bind its vars.Holger Dürer2019-03-042-0/+3
| | | | | | As pointed out in issue #211 the compiler actually warned the user about `json-array-type` etc. being unused lexical vars. Let's hope that this fixes the errors reported with reading json.
* Make the test less fragileJohnson Denen2019-03-041-1/+2
|
* Make default visibility customizable; add documentation.Jeremy Dormitzer2019-03-041-15/+18
|
* Add ability to change the visibilityJeremy Dormitzer2019-03-041-3/+14
|
* Improvements on posting toots.Holger Durer2019-03-042-40/+152
| | | | | | | | | | | | | - Visual feedback in the buffer of: - Number of characters - Content warning flag - Posting visibility - Can't post an empty toot. - Changing visibility to something other than "public". Still missing: - Attaching media - Enabling the NSWF-flag toggling.
* Use the email address of the current user as default (#203)Jürgen Hötzel2019-03-042-2/+2
| | | | * Use the email address of the current user as default
* Update READMEJohnson Denen2018-08-101-32/+34
|
* Bump to version 0.8.0Johnson Denen2018-08-108-8/+8
|
* Fix boosting and faving in the notifications buffer.Holger Dürer2018-08-102-6/+12
| | | | Now that we calculate the base toot id, we can ensure that it is unset in notifications that do not represent a toot.
* Fix the boosting/favouriting of statuses in profiles.Holger Durer2018-08-103-5/+9
| | | | | | | (Favouriting itself is still hard since we have clobbered the 'f' keybinding, but if you bind it to something else or invoke it via `M-x mastodon-toot--toggle-favourite` then at least it works.) This also changes the regular boosting/favoriting behavior. Before we would boost/fav a boost or fav instead of the actual toot that was boosted/faved. With this change we always boost/fav the base toot. To do this we now keep a second toot id (with the base toot) in the byline's properities. (For regular statuses 'toot-id and 'base-toot-id will be identical.)