aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
Commit message (Collapse)AuthorAgeFilesLines
* move profile view followers/following bindings to 's'/'g'.mousebot2021-11-101-2/+2
| | | | | | | because 'O' is no longer available, being used for --my-profile. the actual solution is to just have one binding that cycles through the profile views.
* Do a bit if `if` and `progn` sanitizing.Holger Dürer2021-11-061-6/+5
| | | | | | | - A `progn` with a single form is redundant - `when` doesn't need a `progn` body - `if` has an implicit `progn` for the consequences - I converted one cascade of `if`s into a `cond`.
* Convert most uses of `(cdr (assoc <some-symbol> <a-list>))` to `(alist-get ↵Holger Dürer2021-11-061-31/+31
| | | | | | | <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-12/+12
| | | | | | | | | | | 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-2/+1
| | | | | This is much cleaner than first using `defvar` immediately followed by `make-variable-buffer-local`.
* 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.
* display status of locked accounts in profile viewmousebot2021-10-261-1/+7
|
* update discover menumousebot2021-10-221-0/+8
|
* get relationships for a user with 1 rather than 2 requestsmousebot2021-10-051-2/+3
|
* make updating new toots inserts them after any pinned tootsmousebot2021-10-041-3/+4
|
* package-lint: bump to emacs 26.1, disable stream keybindingsmousebot2021-09-221-1/+1
|
* use inbuilt image scaling if emacs version => 27.1mousebot2021-09-131-1/+2
| | | | and put point at point-min on profile load
* follow requests accept/reject from notifications +mousebot2021-08-091-39/+42
| | | | | | | - 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
* fix typo in mastodon-tl--process-link setting 'account-id propmousebot2021-08-081-1/+1
| | | | this prevented the 'account-id from being attached to mentions
* move follow req acc/rej bindings so they don't shadow profilesmousebot2021-07-161-2/+2
|
* implement updating user profile notemousebot2021-06-051-7/+62
| | | | | uses a tiny minor mode 'profile-update', with bindings. U is a general binding for it.
* foll reqs/faves bindings global, autoloads and declarations, readmemousebot2021-06-011-4/+6
|
* 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-2/+62
| | | | | | | 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.
* only show pinned statuses for "statuses" profile buffermousebot2021-05-301-2/+2
|
* add request and seq as dependencies, flycheck cleanups, andmousebot2021-05-271-1/+2
| | | | move http search funs into http.el
* enable tab-stops for links/handles/hashtags in profile note.mousebot2021-05-211-1/+2
|
* pinned toots implemented properly, make-buffer-for revert to synchromousebot2021-05-211-12/+26
| | | | better pinned toots formatting
* autoloads in profile.elmousebot2021-05-181-0/+4
|
* split mastodon-tl--timeline back into two functions.mousebot2021-05-171-2/+2
| | | | | this is to prevent pinned toots appearing as such when this function is used elsewhere than for a profile. e.g. the tag search.
* clean-up edits after flycheck/bytecompile.mousebot2021-05-161-2/+2
|
* display pinned toots first on a user's profile.mousebot2021-05-161-4/+3
| | | | | | | also: profile--relationships-get no longer interactive. and docstrings for fields insert. indent "pinned" for pinned toots display
* add basic display of "fields" (category pairs) on user profilesmousebot2021-05-161-3/+47
| | | | clean up fields mastodon-profile--fields-format
* display "follows you" and "followed by you" on user profilesmousebot2021-05-141-7/+38
|
* message when loading timelines and profilesmousebot2021-05-131-1/+4
|
* add my profile functionmousebot2021-05-101-0/+5
|
* async view profile, async view thread, better promptsmousebot2021-05-091-4/+9
| | | | | | - view profile (using make-profile-buffer-for). - user confirm to delete toot. - better follow/mute/block/profile prompts
* indent toots/foll/following on profilemousebot2021-05-081-1/+1
|
* add toot/follows/followers counts to profile buffermousebot2021-05-081-1/+11
|
* move profile mode map bindings to free up 'f'/'F'mousebot2021-05-071-2/+2
| | | | - this way you can favorite posts when viewing a profile
* Update copyright and bump versionJohnson Denen2019-03-041-1/+1
|
* Fix the boosting/favouriting of statuses in profiles.Holger Durer2018-08-101-0/+2
| | | | | | | (Favouriting itself is still hard since we have clobbered the 'f' keybinding, but if you bind it to something else or invoke it via `M-x mastodon-toot--toggle-favourite` then at least it works.) This also changes the regular boosting/favoriting behavior. Before we would boost/fav a boost or fav instead of the actual toot that was boosted/faved. With this change we always boost/fav the base toot. To do this we now keep a second toot id (with the base toot) in the byline's properities. (For regular statuses 'toot-id and 'base-toot-id will be identical.)
* More profile work (#193)H Durer2018-08-101-64/+152
| | | | | | | | | | | | * Add an alternative approach to user profile opening. This way asks the user in the minibuffer for the handle and offering completion for all user handles in the current status but allowing the user to also enter any other handle to browse whichever account they wish. This also cleans up some compiler warnings about profile code. * Create a new minor mode for mastodon profile pages. There we override the 'f' and 'F' keys to show following and followers respectively. Those pages now look very similar to the regular profile page (with a header).
* Give mastodon-media--inline-images a saner interface. (#191)H Durer2018-08-101-3/+3
| | | | | | | | Instead of making it search the whole buffer every time to find images to load, give it a range where this work should be done. We then call this immediately after inserting a single status, notification, ... There should be no big noticible difference - images might load a tiny bit sooner although I doubt you can see that. This should be more efficient on large buffers although Alex didn't notice any problems when testing streamed buffers. We should still do it as it make things easier to understand. I was always worried about these global operations.
* Adjusted mastodon-tl.el to open user profiles in emacs. (#189)Alexander Griffith2018-08-101-12/+25
| | | | | | * Adjusted mastodon-tl.el to open user profiles in emacs. This also fixes an issue in user profiles where new statuses were insert at the above rather than below the user profile header.
* Add user profiles closes #165 (#186)Alexander Griffith2018-08-101-0/+160
* Add user profiles - added keybinding U for opening user profiles - (also added vimish keybindings 'h' and 'l' as aliased for tab and stab in mastodon-mode to compliment jk nav) - autoloads 'mastodon-profile--get-next-author