aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
Commit message (Collapse)AuthorAgeFilesLines
* auth: make old mastodon.el users awareAbhiseck Paira2022-02-251-1/+1
| | | | | | | | | | | | | | | | | | 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.
* update copyright holder infoAbhiseck Paira2022-01-171-0/+1
| | | | | Update Copyright holder info for files that have undergone non trivial changes.
* mastodon.el: update `mastodon-instance-url' docstringAbhiseck Paira2022-01-131-1/+15
| | | | | | Update the docstring for the defcustom `mastodon-instance-url' to clarify what it's value should be to reflect the changes introduced in the previous commit.
* mastodon.el: introduce new defcustom `mastodon-active-user'Abhiseck Paira2022-01-131-0/+13
| | | | | | | | | | | Use `mastodon-active-user' and `mastodon-instance-url' to determine which mastodon account the user wants to be active for the current session of Emacs. See the documentation string of this variable for details on how to use it. This new variable becomes necessary to prevent conflict when a user has two accounts on the same instance, that is same value of `mastodon-instance-url'.
* refactor follow request accept/reject functions.mousebot2021-12-241-4/+4
| | | | | | | | | | previously we had duplication of functions depending on whether we were in follow requests view or notificaitons view. now we just check which kind of f-req we have and act accordingly. main function being `mastodon-notifications--follow-request-process'. also updates keybindings for both views. we no longer need them included separately in profile-mode.
* 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-2/+3
| | | | strictly, the 27.1 dependency is only for proper-list-p in -http.el.
* bump version, change homepage link, readmemousebot2021-12-171-2/+2
|
* customize option to enable custom emoji by default.mousebot2021-12-151-1/+3
|
* move profile--my-profile binding to 'O'mousebot2021-11-101-1/+1
| | | | to avoid using C-S- bindings, which don't always work for others.
* Reformat all code.Holger Dürer2021-11-061-2/+2
| | | | | | | | | | | Basically, in Emacs for each file: select all text and `indent-region`. - This also removes one redundant comment, and - fixes an error with json decoding where the `json-read-from-string` was actually not within the intended `unless` clause (which explains the warning about "result of (string-equal "" json-string) will be ignored" which I never understood.
* Fix tests.Holger Dürer2021-11-011-1/+1
| | | | | | | | | | | | These needed a bit of tender love and care to get back into passing state. - Move the auth tests to the `test` directory. No idea what it was doing in `lisp`. - Image tests are mostly broken because with later Emacsen we no longer need the `imagemagic` option on create-image. - Some method signatures have changed and mocking calls needed to follow suit.
* require mastodon-toot in mastodon.el, for customize visibilitymousebot2021-10-281-9/+10
| | | | - & no need for all other mastodon-toot autoloads
* mastodon-async readmemousebot2021-10-281-0/+1
|
* rewrite bookmark-toot as togglemousebot2021-10-231-1/+2
|
* bookmark-toot keybindingmousebot2021-10-221-0/+1
|
* flycheck, autoloads, docstringsmousebot2021-10-221-1/+2
|
* bookmarks keybindingmousebot2021-10-221-0/+2
|
* replies to toots adopt their visibility status by default.mousebot2021-10-211-3/+2
| | | | | | | | | this makes it so that if you reply to a direct message, your toot will also be direct by default. - we feed the reply's full toot JSON through the chain of functions called, all the way down to "setup-as-reply". that way, if anything else needs to be extracted when setting up a reply, it's all there.
* kill-current-buffer instead of kill-this-buffermousebot2021-10-011-1/+1
| | | | | kill-this-buffer doesn't always work if not called from the menu bar, as stated in its docstring.
* basic delete-and-redraft-toot, text status only for now.mousebot2021-09-231-0/+2
|
* package-lint: bump to emacs 26.1, disable stream keybindingsmousebot2021-09-221-9/+9
|
* functions to vote on polls in timelines, bound to "v"mousebot2021-08-091-1/+3
| | | | - masto view favorites binding moved to "V", in line with other separate views being in capitals
* follow requests accept/reject from notifications +mousebot2021-08-091-0/+4
| | | | | | | - new bindings for f-req accept/reject (in both notifs and in f-req views) - check if we are at an f-req before accept/rejecting - flycheck / docstrings - fix notifs byline formatting for f-reqs
* hack to ensure toot buffer bindings are always enabled.mousebot2021-06-191-1/+1
| | | | | | | | make mastodon-toot-mode is run in mastodon-toot--compose-buffer before after-change-functions bugs. this makes mastodon-toot work properly even if mastodon-mode has not yet been run/loaded yet.
* typos and readmemousebot2021-06-141-1/+1
|
* use mastodon-auth--user-acct instead of get-account-name in mastodonmousebot2021-06-081-2/+3
| | | | | | the former first checks if the value is stored in var mastodon-auth--acct-alist, and only makes a request if it doesn't get the handle from there. and if run it also stores the value.
* only get-home-timeline if mastodon buffers not already open.mousebot2021-06-071-2/+15
| | | | requires cl-lib
* implement updating user profile notemousebot2021-06-051-1/+3
| | | | | uses a tiny minor mode 'profile-update', with bindings. U is a general binding for it.
* enable async stream for user notifications.mousebot2021-06-031-0/+5
| | | | creates a notifications filter for the 'user' stream, then handles display of notifications, which have their own timeline funs.
* add basic live updates of home/local/federated timelines.mousebot2021-06-011-0/+6
| | | | | the code, mastodon-async.el is taken from https://github.com/alexjgriffith/mastodon-future.el and only slightly modified to make the home stream work.
* foll reqs/faves bindings global, autoloads and declarations, readmemousebot2021-06-011-0/+2
|
* bump masto version, bump emacs version to 25.1, dependency in readmemousebot2021-05-311-2/+2
|
* add request and seq as dependencies, flycheck cleanups, andmousebot2021-05-271-1/+2
| | | | move http search funs into http.el
* pin/unpin now toggle fun, and moved copy/delete to mastodon-toot.mousebot2021-05-251-6/+6
|
* pin/unpin toot funs, delete toot now tests if toot is own.mousebot2021-05-241-0/+2
|
* add new functions to discover menu, and autoloads.mousebot2021-05-161-0/+9
|
* display "follows you" and "followed by you" on user profilesmousebot2021-05-141-1/+2
|
* copy url of toot at pointmousebot2021-05-131-0/+2
|
* add basic search functionsmousebot2021-05-111-0/+2
|
* add my profile functionmousebot2021-05-101-0/+1
|
* async view profile, async view thread, better promptsmousebot2021-05-091-1/+2
| | | | | | - view profile (using make-profile-buffer-for). - user confirm to delete toot. - better follow/mute/block/profile prompts
* mute/unmute, block/unblock funs and bindingsmousebot2021-05-081-0/+4
|
* unfollow user funmousebot2021-05-081-0/+1
|
* follow user bindingmousebot2021-05-071-0/+1
|
* cherry pick ieure's cosmetic changesmousebot2021-05-071-1/+1
|
* delete toot keybindingmousebot2021-05-061-0/+2
|
* Update copyright and bump versionJohnson Denen2019-03-041-2/+2
|
* Close #199 with keybinding refactorJohnson Denen2019-03-041-16/+18
|