aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
Commit message (Collapse)AuthorAgeFilesLines
...
* url-lookup: fix loading profile fun: just use the search JSONmarty hiatt2022-09-031-3/+2
|
* get-text-property, coz our tl--property requres masto buffermarty hiatt2022-09-031-1/+1
|
* rough regex check for fedi URLsmarty hiatt2022-09-031-18/+37
|
* work on url-lookupmarty hiatt2022-09-031-9/+11
|
* url-lookup: read-string if no arg or url at pointmarty hiatt2022-09-031-2/+5
|
* mastodon.el - require mastodon-httpmarty hiatt2022-09-031-0/+1
|
* move url-lookup to mastodon.elmarty hiatt2022-09-031-0/+28
|
* fix trending tags fun name + autoload in mastodon.elmarty hiatt2022-09-021-0/+1
|
* bump version in boilerplatemarty hiatt2022-08-271-3/+3
|
* update dependencies, request version consistencymarty hiatt2022-08-271-1/+1
|
* autoloads, flycheckmarty hiatt2022-08-271-1/+2
|
* Merge pull request '2FA login support' (#255) from ↵martianh2022-03-231-1/+29
|\ | | | | | | | | | | Red_Starfish/mastodon-up.el:login into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/255
| * 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'.
* | autoload and binding for translate-toot-textmousebot2022-03-131-0/+5
| |
* | improve check for any existing masto buffers on mastodon loadmousebot2022-02-171-4/+9
| |
* | fix view filters/foll suggestsmousebot2022-02-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - they get keymaps that inherit and so override the main masto keymap, which allows them to still have the basic timeline/view nav functions. - but we give them next-item rather than next toot so that they never try to e.g. load for toots into the buffer, which wouldn't work. - also remove the reference to foll requests view in tl--init as it is not longer needed. binding for follow suggestions remove tab from foll suggests keymap makes tab work as default, which means you can n/p to next/prev user, while still being able to tab to user next handle, to visit profile squashed commit: remove foll suggestions keymap
* | fix view filters bindingmousebot2022-02-151-1/+1
| |
* | buffer local keymap, error handling, make filters nicermousebot2022-02-151-0/+2
| | | | | | | | | | | | | | | | - separate goto-next/prev-filter commands - we use properties toot-id and byline so the navigation works, calqued on - goto-prev/next-toot - error handle no word or context supplied - reload filters view on create or delete
* | revert to requiring mastodon tootmousebot2022-02-111-11/+10
| | | | | | | | | | | | | | | | we always need all the funs for operating on individual toots so this is best. Revert "revert require of mastodon-toot to autoloads" This reverts commit 6a164669e0bffed67ad59c206f13651a67456127.
* | revert require of mastodon-toot to autoloadsmousebot2022-02-051-11/+11
| | | | | | | | | | - use (autoload) call in mastodon.el for functions - use autoload cookie in mastodon-tool.el for customize options.
* | update homepage and copyright boilerplatemousebot2022-02-051-1/+1
|/
* 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.