aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
Commit message (Collapse)AuthorAgeFilesLines
* improve display of polls:mousebot2021-12-161-4/+18
| | | | place them after toot content and add padding for vote count display.
* 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.
* 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
|
* Implement clickable images with shr-browse-image.mousebot2021-05-211-4/+10
| | | | | | | | images are tab stops. click or RET runs shr-browse-image. a prefix arg copies the URL. images use the mastodon-tl--shr-image-map-replacement for extra functions like zoom image, save image, rotate image, etc.
* pinned toots implemented properly, make-buffer-for revert to synchromousebot2021-05-211-19/+0
| | | | better pinned toots formatting
* fix propertizing of "B" for boost in bylinemousebot2021-05-191-1/+1
|
* split mastodon-tl--timeline back into two functions.mousebot2021-05-171-1/+6
| | | | | this is to prevent pinned toots appearing as such when this function is used elsewhere than for a profile. e.g. the tag search.
* add new functions to discover menu, and autoloads.mousebot2021-05-161-0/+1
|
* clean-up edits after flycheck/bytecompile.mousebot2021-05-161-7/+6
|
* display pinned toots first on a user's profile.mousebot2021-05-161-3/+17
| | | | | | | also: profile--relationships-get no longer interactive. and docstrings for fields insert. indent "pinned" for pinned toots display
* shrink width of shr-width in -tl--render-text.mousebot2021-05-161-1/+1
| | | | | setting this to window-width minus 1 makes text flow work properly for me with proportional fonts enabled.