aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor notify-user-posts functionsmousebot2021-12-161-25/+32
| | | | | this updates the functions to toggle receiving notifications when a user posts to work with the newly refactored follow-user function and associated functions.
* Merge branch 'develop' into notify-when-postmousebot2021-12-161-211/+163
|\
| * Merge branch 'develop' into media-typemousebot2021-12-161-124/+94
| |\
| | * Merge branch 'refactor-follows-etc' into developmousebot2021-12-161-120/+76
| | |\
| | | * indent-buffer on -tl.elmousebot2021-12-161-14/+14
| | | |
| | | * refactor un/follow, un/block, un/mute functionsmousebot2021-12-151-116/+72
| | | |
| | * | improve display of polls:mousebot2021-12-161-4/+18
| | |/ | | | | | | | | | place them after toot content and add padding for vote count display.
| * / fetch media_attachments' "type" from server and store as propertymousebot2021-11-091-2/+3
| |/ | | | | | | | | | | | | | | | | | | | | - if the type is not "image", it is displayed in`'help-echo' property. - the idea is to use this to handle gifs/videos differently to images. but for now i'm not sure how to actually render such media. but this way, at least the item could be viewed externally if the user wants to see it, or at least they know they're missing out on something. - NB: EWW can't handle content type "video/mp4".
| * remove help-echo for faves/boosts/replies, it breaks img echo keymapmousebot2021-11-091-10/+0
| |
| * Simplify the logic in `mastodon-tl--insert-status`.Holger Dürer2021-11-061-8/+5
| | | | | | | | | | | | | | Just a small simplification of the recent change from commit 027f24125f: the formatting is actually the same no matter if showing infos about the toot itself or the reblogged toot, so let's just first pick which toot to use and have the formatting just once.
| * Convert most uses of `(cdr (assoc <some-symbol> <a-list>))` to `(alist-get ↵Holger Dürer2021-11-061-44/+43
| | | | | | | | | | | | | | <some-symbol> <a-list>)` This is more readable and actually more efficient (maybe) since it uses `eq` rather than `equal` as a test.
| * Reformat all code.Holger Dürer2021-11-061-27/+27
| | | | | | | | | | | | | | | | | | | | | | 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.
| * Use `defvar-local` to create buffer-local vars.Holger Dürer2021-11-061-8/+4
| | | | | | | | | | This is much cleaner than first using `defvar` immediately followed by `make-variable-buffer-local`.
| * display faves/boosts/replies in threads also for reblogsmousebot2021-11-061-5/+11
| |
| * 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.
| * Fix compilation warnings.Holger Dürer2021-11-011-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | This is mostly reflowing / reworkding docstrings to keep within 80 characters limit and adding autoloads. There are two warning remaining that I don't understand: - mastodon-async.el:359:16: Warning: reference to free variable ‘url-http-end-of-headers’ - mastodon-http.el:139:8: Warning: value returned from (string-equal json-string "") is unused When adding autoloads this sorts them for better readability.
* | add support for receiving notifications when a user postsmousebot2021-11-021-4/+40
|/ | | | | | | - mastodon-tl--notify-user-posts - mastodon-tl--no-notify-user-posts - + some schtick in notifications.el to make sure the notifs display ok.
* switch followers-only and direct message icons to match web layoutmousebot2021-10-261-2/+2
|
* revert tl--thread to sync request for speed.mousebot2021-10-251-13/+6
|
* echo faves, boosts, replies counts when in thread viewmousebot2021-10-251-0/+8
|
* restore original tl--init as tl--init-sync.mousebot2021-10-251-0/+31
| | | | | | | | | - use it for eg notifications - this because i suspect sync is sometimes faster. - with async init*, i often have to press a key to trigger the request - perhaps good to have both in the code, and choose which to use when - cd also poss make this a customize.
* stop shr-image-map taking over our 'u' bindingmousebot2021-10-231-0/+3
| | | | | - the shr-maybe-probe-and-copy-url function is already bound to 'w' as well, so we don't lose it by doing this
* icon displays for message visibility - direct, or privatemousebot2021-10-211-1/+10
|
* flycheck: docstrings, autoloads, declarationsmousebot2021-10-021-32/+64
|
* disable avatars by defaultmousebot2021-09-231-1/+1
|
* on delete toot, redraw current timeline or profilemousebot2021-09-231-0/+15
|
* rename show-avatars-p custom to show-avatarsmousebot2021-09-221-3/+3
|
* package-lint: bump to emacs 26.1, disable stream keybindingsmousebot2021-09-221-1/+1
|
* make display of (scaled) avatars a customize optionmousebot2021-09-131-6/+15
|
* use inbuilt image scaling if emacs version => 27.1mousebot2021-09-131-1/+3
| | | | and put point at point-min on profile load
* fix RET/i not working on image attachments in notifications.mousebot2021-09-081-1/+4
| | | | | notifications only have a url and a preview_url, but no remote_url. we still prefer remote_url in home timelines (inc. boosts) though.
* zero index our poll vote, message choice + number on successmousebot2021-08-101-9/+11
| | | | zero indexing the vote means we vote for the option we actually chose
* try to handle reblogged pollsmousebot2021-08-101-1/+5
|
* provide poll option descriptions in completing-readmousebot2021-08-101-15/+22
|
* functions to vote on polls in timelines, bound to "v"mousebot2021-08-091-4/+42
| | | | - masto view favorites binding moved to "V", in line with other separate views being in capitals
* use either display_name or username in author bylinemousebot2021-08-091-1/+3
| | | | | this fixes the situation where accounts with nothing in "display_name" would appear as only as a handle
* revert 'base-toot-id to 'toot-id in tl oldest tootmousebot2021-08-081-1/+1
|
* fix typo in mastodon-tl--process-link setting 'account-id propmousebot2021-08-081-2/+4
| | | | this prevented the 'account-id from being attached to mentions
* replace 'toot-id with base-toot-id in mastodon-tl--oldest-idmousebot2021-08-071-1/+2
| | | | | | this is an attempt to avoid adding same toots instead of older toots on timelines. it seems to only happen sometimes, my guess it is happens when last toot displayed is favorited or boosted, perhaps only by the logged-in user.
* fix mentions broken when on local instancemousebot2021-08-071-3/+7
|
* feed notfication ID to mastodon-notifications--insert-statusmousebot2021-06-191-2/+2
| | | | | | | | which is a copy of mastodon-tl--insert-status. this makes the 'toot-id of notifications that of the favoriting/boosting item, rather than the item boosted/favorited. this ID is needed in order to make loading more older notifications work correctly. beforehand, the call would be incorrect and the same latest 20 notifications would load.
* display boosted pollsmousebot2021-06-191-2/+5
|
* foll reqs/faves bindings global, autoloads and declarations, readmemousebot2021-06-011-8/+8
|
* bump masto version, bump emacs version to 25.1, dependency in readmemousebot2021-05-311-2/+2
|
* view favourites fun, and view/accept/reject follow requests funs.mousebot2021-05-301-0/+2
| | | | | | | and bindings. view-follow-requests makes mastodon-tl--init run in mastodon-profile-mode just so that its bindings can be restricted to that minor mode.
* flychecks and autoloadsmousebot2021-05-261-0/+4
|
* Support basic displaying of polls.mousebot2021-05-251-1/+17
|
* pin/unpin now toggle fun, and moved copy/delete to mastodon-toot.mousebot2021-05-251-66/+0
|
* pin/unpin toot funs, delete toot now tests if toot is own.mousebot2021-05-241-8/+51
|
* typos in -tl, thread* no longer interactive.mousebot2021-05-241-5/+5
|