aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
Commit message (Collapse)AuthorAgeFilesLines
...
| * autoload fix for mastodon-notifications--get; set interative to tmousebot2022-01-301-1/+3
| | | | | | | | | | to make `mastodon-notifications--get' available outside our keymap as it needs to be available to evil users and via M-x. otherwise there's no way to run it.
| * handle a buggy empty notificationmousebot2022-01-151-17/+18
| | | | | | | | | | | | i received an notification (also in other clients/web interface) attached to no toot. these checks should allow notifications view to display without tripping up on any such vacant notifs from the server.
* | Merge branch 'develop' into mpv-play-at-pointmousebot2022-01-151-9/+9
|\|
| * FIX local mentions/links checkingmousebot2022-01-111-9/+9
| | | | | | | | | | | | | | | | | | | | | | we remove the hacky non-check for a user handle from mastodon-tl--process-link, so that it /always/ runs mastodon-tl--extract-userhandle-from-url. the in extract-userhandle-from-url, we test if the url host = local instance. if so, we just return buffer-text, which = "@user", with no suffix. else we return a full "@user@instance.url" handle. remove unused var after fix to userhandle parsing
* | add function to play gif/video at point. uses mpv.elmousebot2022-01-111-0/+17
|/ | | | oops fix the mpv require statement
* refactor mastodon-notifications--insert-statusmousebot2021-12-241-3/+7
| | | | | | | | | | | | | which was a copy of mastodon-tl--insert-status. we revert to having just the latter as main function with optional argument. mastodon-notifications--insert-status just calls it with the arg ID. the reason we need the difference is to ensure notifications have their own ID, and not that of the toot the notif refers to, attached as property "toot-id". then we have all functionality working on notifications, such as boosting mentions and so on.
* Merge branch 'main' into developmousebot2021-12-231-13/+9
|\
| * tiny cleanups after Ediff main / mastermousebot2021-12-231-14/+10
| |
| * override 'O' binding on links to my-profilemousebot2021-12-211-0/+2
| |
* | override 'O' binding on links to my-profilemousebot2021-12-211-0/+2
| |
* | improve delete toot testsmousebot2021-12-201-0/+2
| |
* | typos and docstringsmousebot2021-12-201-5/+8
|/
* improve faves count help-echo propertizingmousebot2021-12-171-10/+30
| | | | | | | | - add `mastodon-tl--format-faves-count function - handle notifications formatting (get 'status field of toot) - apply to author-byline formatting - apply to the (F) and (B) formatting for faves/boosts - ensures where point lands after `mastodon-tl--goto-next-toot is always propertized
* mapcar* -> cl-mapcar in -tl.elmousebot2021-12-171-3/+2
|
* bump version to a round numbermousebot2021-12-171-1/+1
|
* cl-lib not cl for mapcar* in -tlmousebot2021-12-171-2/+2
|
* 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
|
* revert echo faves on toot text in thread viewmousebot2021-12-171-12/+1
| | | | | | because it breaks propertizing of links/handles. so echo faves is now only on byline author name.
* keep "O"/my-profile binding when point on image.mousebot2021-12-171-0/+2
|
* FIX echo faves in thread view clashing with media help-echomousebot2021-12-171-16/+28
| | | | | | | | | | | | | move help-echo propertizing to author name of byline, in `mastodon-tl--byline-author'. so when we use `goto-next-toot' point is on author and we get the help echo and add the same help-echo to `mastodon-tl--content', but only when in thread view. this ensures the propertizing occurs prior to any image propertizing, when will then only replace the faves propertizing for the image part of the given toot. that way we have help echo for images when we want, and faves count otherwise.
* Merge branch 'develop' into echo-faves-in-threadmousebot2021-12-161-126/+130
|\
| * 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
| | |
| * | 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.
* | | fixme insert-status/get-media-link-renderingmousebot2021-11-091-0/+1
| |/ |/|
* | 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.
* 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
|