aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-client.el
Commit message (Collapse)AuthorAgeFilesLines
* change email addressmarty hiatt2024-10-201-1/+1
|
* eq for symbols, string= for stringsmarty hiatt2024-08-221-1/+1
|
* remove ;; Version: strings in buffers other than mastodon.elmarty hiatt2023-11-101-1/+0
|
* audit client.elmarty hiatt2023-05-101-11/+7
|
* remove all ;; Package-Requires: declarations save for main filemarty hiatt2023-03-271-1/+0
| | | | main file is set in .dir-locals.el now
* sort all autoloadsmarty hiatt2023-03-191-1/+1
| | | | sort autoloads in profile.el
* bump version in boilerplatemarty hiatt2022-08-271-1/+1
|
* Merge pull request '2FA login support' (#255) from ↵martianh2022-03-231-5/+105
|\ | | | | | | | | | | Red_Starfish/mastodon-up.el:login into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/255
| * change '-' to '--' in between function and namespace namesAbhiseck Paira2022-02-231-8/+8
| | | | | | | | | | | | | | | | 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
| * update copyright holder infoAbhiseck Paira2022-01-171-0/+1
| | | | | | | | | | Update Copyright holder info for files that have undergone non trivial changes.
| * define autoloads and defvars to silence the byte compilerAbhiseck Paira2022-01-171-0/+2
| |
| * make a public interface for accessing user detailsAbhiseck Paira2022-01-171-0/+17
| | | | | | | | | | | | Introduce the function `mastodon-client-active-user' for public use which returns the details of the currently active users. It performs similar function as that of the function `mastodon-client'.
| * functions for making/checking active usersAbhiseck Paira2022-01-171-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Define functions for like: * mastodon-client-make-user-active: Take one argument USER-DETAILS and make it the user details of the active user. * mastodon-client--make-current-user-active: Make the user details specified in the init file the current user. * mastodon-client--current-user-active-p: Return user-details if the current user is active, otherwise return nil.
| * store access token in plstore of the current userAbhiseck Paira2022-01-171-0/+22
| | | | | | | | | | | | | | | | | | Store access token in the plstore of the current user. To do that introduce the function `mastodon-client-store-access-token' of one argument TOKEN. Also define a helper function `mastodon-client--make-user-details-plist' which creates a plist with current users details and returns it.
| * get account ID from user variables specified in the init fileAbhiseck Paira2022-01-171-0/+9
| | | | | | | | | | | | | | | | | | Get user account ID from the mastodon variables specified in the init file by introducing the function `mastodon-client-form-user-from-vars'. Return user account ID in the form "user@instance.com" when the values of `mastodon-active-user' and `mastodon-instance-url' are "user" and "https://instance.com" respectively.
| * introduce a general plstore reading functionAbhiseck Paira2022-01-171-0/+7
| | | | | | | | | | | | Introduce a general version of `mastodon-client--read'[1] with the name `mastodon-client--general-read'[2] as [1] is too specific. [2] can be called with with a plstore "key" to retrieve the item keyed by that KEY.
| * abstract plstore implementation details of getting valueAbhiseck Paira2022-01-171-1/+7
| | | | | | | | | | | | | | | | Introduce a new function `mastodon-client--remove-key-from-plstore' which removes "key" part from a plstore item. Refactor `mastodon-client--read' to use `mastodon-client--remove-key-from-plstore'.
| * abstract Mastodon API request infoAbhiseck Paira2022-01-131-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mastodon API requires some info that needs to be passed during app registration and user authentication. Those info were hard coded into various functions. Introduce three variables (defvars): 1. mastodon-client-scopes 2. mastodon-client-website 3. mastodon-client-redirect-uri use them to abstract those info. Also refactor `mastodon-client--register' function in terms of these variables.
* | update homepage and copyright boilerplatemousebot2022-02-051-1/+1
|/
* bump version to a round numbermousebot2021-12-171-1/+1
|
* boilerplate maintainer contactmousebot2021-12-171-0/+1
|
* depend on emacs 27.1, flychecks, docstrings, etc.mousebot2021-12-171-1/+1
| | | | strictly, the 27.1 dependency is only for proper-list-p in -http.el.
* bump version, change homepage link, readmemousebot2021-12-171-2/+2
|
* flycheck: docstrings, autoloads, etcmousebot2021-10-031-1/+1
|
* package-lint: bump to emacs 26.1, disable stream keybindingsmousebot2021-09-221-1/+1
|
* bump masto version, bump emacs version to 25.1, dependency in readmemousebot2021-05-311-2/+2
|
* Update copyright and bump versionJohnson Denen2019-03-041-2/+2
|
* Explitly require json.el in files where we dynamically bind its vars.Holger Dürer2019-03-041-0/+2
| | | | | | 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.
* Bump to version 0.8.0Johnson Denen2018-08-101-1/+1
|
* Bump to 0.7.2 and shorten long code lines (#172)Alexander Griffith2018-03-051-2/+3
| | | | | | * Bump version numbers to 0.7.2 * Adjusted functions to bring line length below 90.
* Explicity set output variables to "unlimited" when saving plstore.Holger Durer2018-03-021-1/+6
| | | | | | | Alex Griffith reported ellipses in the output which seems to indicate the printing was somehow truncated. I cannot see anywhere in the code path for plstore-save that these variables be set explictly. See https://www.gnu.org/software/emacs/manual/html_node/elisp/Output-Variables.html for an explanation of these variables.
* Keep track of to which instance secrets in plstore belong.Holger Dürer2018-03-021-12/+18
| | | | | | | | | | | While testing out issue 149 (https://github.com/jdenen/mastodon.el/issues/149) I had problems due to stale client information being cached. With this change we store various pieces of information (the client information in the plstore and the auth tokens) in alists keyed by the instance url (and the plstore key contains the instance url as well to allow us to store data per instance).
* Bump version to 0.7.1Johnson Denen2017-06-191-1/+1
|
* Bump to v0.7.0Johnson Denen2017-05-181-1/+1
|
* replaced declare-function with autoloadalexjgriffith2017-05-181-2/+2
|
* Remove most byte-compile warnings.Holger Dürer2017-05-181-14/+16
| | | | | | | We do this by - moving vars into the files where they are (mostly) used - "declaring" vars used elsewhere with the (defvar <var-name>) pattern, - declaring functions defined in others functions rather than loading the file via require.
* Bump to v0.6.3Johnson Denen2017-05-151-1/+1
|
* Use lexical-binding in all files.Holger Dürer2017-05-151-1/+2
| | | | | We only support Emacs 24 and 25 so are free to use sane bindings by default. To keep the linter happy, we need to declare dependency on Emacs 24 in all files.
* Bump to v0.6.2Johnson Denen2017-04-291-1/+1
|
* Bump to v0.6.1Johnson Denen2017-04-281-1/+1
|
* Bump to v0.6.0Johnson Denen2017-04-241-1/+1
|
* Bump to v0.5.5Johnson Denen2017-04-241-1/+1
|
* Bump to v0.5.4Johnson Denen2017-04-231-1/+1
|
* Fix some compilation errorsJohnson Denen2017-04-231-1/+1
|
* Make tweaks per checkdoc feedbackJohnson Denen2017-04-231-2/+2
|
* Make tweaks per package-lint feedbackJohnson Denen2017-04-231-0/+1
|
* Group API endpoint function with mastodon-httpJohnson Denen2017-04-231-1/+1
|
* Add mastodon-client featureJohnson Denen2017-04-231-0/+95