aboutsummaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
...
| * add funs --get-buffer-type and --has-toots-pmarty hiatt2023-01-111-0/+70
| | | | | | | | still need to actually use these in the codebase tho
* | toot--send: simplify edit-p checkmarty hiatt2023-01-151-6/+5
| |
* | remove insert call in toot--most-restritive-vismarty hiatt2023-01-141-1/+0
| |
* | case-insensitive match for --get-link-header-from-responsemarty hiatt2023-01-131-1/+2
|/ | | | | | pleroma uses "link", not "Link". FIXES #352
* customize number of posts displayed in a timeline or account viewmarty hiatt2023-01-112-5/+16
| | | | FIXES #363
* Merge pull request 'Add option to set the default reply visibility' (#370) ↵martianh2023-01-101-1/+23
|\ | | | | | | | | | | from boynux/mastodon.el:default-reply-visibility into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/370
| * Add option to set the default reply visibilityMoha2023-01-011-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a new option `mastodon-toot-default-reply-visibility`. The default is set to "Public". Replies will be defaulted to the value of this parameter unless the original toot has a more restrictive visiblity. For example: with `mastodon-toot--default-reply-visibility` set to "unlisted" - Original post visibility: public - Reply default visibility: unlinsted - Original post visbility: private (only-followers) - Repy default visibility: private
* | Merge branch 'buffer-spec-update-params' into developmarty hiatt2023-01-101-33/+40
|\ \
| * | optional no-error arg for get-buffer-propertymarty hiatt2023-01-101-8/+10
| | | | | | | | | | | | used by update-params and link-header, as they are optionally set in buffer spec
| * | tl--get-buff-prop: don't error if we find nothing.marty hiatt2023-01-091-3/+4
| | | | | | | | | | | | that way we can call buffer-spec fetch funs without knowing if they're set.
| * | factor out mastodon-tl--update-params.marty hiatt2023-01-091-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | we use this so that things don't break when (mastodon-tl--get-buffer-property 'update-params) is called when update-params is not set, which causes an error. we might also just remove the error call in that function and return nil if a buffer prop is not set.
| * | store params in buffer-spec, use for updating buffersmarty hiatt2023-01-091-27/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - store the http parameters used to load and update the current view in `mastodon-tl--buffer-spec` - `mastodon-tl--updated-json` - fetch and use stored parameters for now, local TL, and filtered notifications rely on this tl--more-json-async: handle update-params properly updated-json /more-json-async: fall back to args if no params update docstrings and code commends regarding update-params in buffer-spec
* | | remove first empty line in docstringsmarty hiatt2023-01-098-56/+5
|/ /
* | tl--action-success: only move point if it was on bylinemarty hiatt2023-01-071-3/+5
| | | | | | | | FIX #326
* | Document `mastodon-tl--set-after-update-marker'Tassilo Horn2022-12-311-0/+3
| |
* | docstringsmarty hiatt2022-12-302-4/+5
| |
* | `mastodon-tl--set-after-update-marker' - add `t` to last cond branchmarty hiatt2022-12-301-2/+3
| |
* | Fix mastodon-tl-position-after-updateTassilo Horn2022-12-291-3/+3
|/
* hack tl--update so it works with update fun tl--threadmarty hiatt2022-12-291-11/+16
|
* fix update local tl, tl--update, like tl--moremarty hiatt2022-12-291-2/+5
|
* Merge commit 'pullreqs/350' into developmarty hiatt2022-12-291-1/+35
|\
| * Keep current position of point after updates (fixes #349)Tassilo Horn2022-12-281-1/+35
| | | | | | | | | | Set a marker (mastodon-tl--before-update-marker) before updating the buffer and reset point's position there afterwards.
| * handle nil json response in tl--init*marty hiatt2022-12-281-37/+39
| | | | | | | | | | | | fixes #352 we should almost always have faves and other tls, but not always things like bookmarks.
| * Revert "adapt messaging for following of locked accounts"marty hiatt2022-12-281-26/+14
| | | | | | | | This reverts commit 0eeb429d3531a3c11cc9ea3c3aef258b7c671edb.
| * FIX pagination of local timelinemarty hiatt2022-12-281-5/+6
| |
* | handle nil json response in tl--init*marty hiatt2022-12-291-37/+39
| | | | | | | | | | | | fixes #352 we should almost always have faves and other tls, but not always things like bookmarks.
* | Revert "adapt messaging for following of locked accounts"marty hiatt2022-12-291-26/+14
| | | | | | | | This reverts commit 0eeb429d3531a3c11cc9ea3c3aef258b7c671edb.
* | FIX pagination of local timelinemarty hiatt2022-12-291-10/+20
|/ | | | actually fix Local pagination with tl--more* etc
* adapt messaging for following of locked accountsmarty hiatt2022-12-281-14/+26
|
* Only add scheduled_at parameter to toot params when non-nilToke Høiland-Jørgensen2022-12-261-11/+13
| | | | | | | | | The Pleroma server software can't handle the scheduled_at parameter being set to anything other than a valid datetime, even an empty value. To work around this, change mastodon-toot--send to only add the parameter to the list of args if its non-nil. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
* Merge branch 'develop' into fix-two-spaces-in-replymartianh2022-12-262-7/+14
|\
| * Merge pull request 'Do not pass URL directly to message.' (#361) from ↵martianh2022-12-231-1/+1
| |\ | | | | | | | | | | | | | | | sigkill/mastodon.el:no-message into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/361
| | * Do not pass URL directly to message.Troels Henriksen2022-12-231-1/+1
| | | | | | | | | | | | This breaks if it contains any % characters.
| * | further harden custom emoji regex filteringBas Alberts2022-12-221-2/+2
| |/ | | | | | | | | | | | | Prevent empty string shortcodes from creating dotfiles inside the custom emoji download dir to prevent e.g. ".envrc" and other such contextual dotfiles from being created in the legitimate download location.
| * fix for custom emoji path traversalBas Alberts2022-12-231-7/+13
| |
| * message auth URL when copying to kill ringmarty hiatt2022-12-181-0/+1
| |
* | Merge branch 'develop' into fix-two-spaces-in-replyemocoder2022-12-194-62/+387
|\|
| * Merge pull request 'mastodon-tl--spoiler: Add error handling to /preferences ↵martianh2022-12-111-2/+6
| |\ | | | | | | | | | | | | | | | api query' (#347) from stellarskylark/mastodon.el:develop into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/347
| | * mastodon-tl--spoiler: Add error handling to /preferences api querySkylar Hill2022-12-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mastodon.el currently breaks when trying to load a spoilered toot if the /preferences endpoint returns something unexpected, preventing mastodon-tl--buffer-spec from being set and not automatically enabling the major mode. This is particularly a problem on GoToSocial, which does not currently have the endpoint implemented and instead returns a 404 HTML page, causing a JSON parsing error. This PR adds a simple check which causes the API check in mastodon-tl--spoiler to return null if it errors, thus triggering the default behavior of hiding CW'd toots until opened.
| * | Use mastodon-toot--count-toot-chars when validating toot lengthSacha Chua2022-12-081-1/+1
| |/ | | | | | | | | * lisp/mastodon-toot.el (mastodon-toot--send): Use mastodon-toot--count-toot-chars instead of length.
| * update comment re completion fetchingmarty hiatt2022-12-021-4/+2
| |
| * factor fetch candidates fun, try to improve completion performancemarty hiatt2022-12-011-13/+21
| |
| * completion - bound the --get-bounds backward regex searchmarty hiatt2022-12-011-1/+5
| | | | | | | | | | | | this prevents matching when we have type words after a handle/tag (forward-whitespace -1) places point before the previous space. placing it after doesn't work, it breaks some completion cases.
| * schedule-toot - comment to acknowledge ctmarty hiatt2022-11-301-0/+2
| |
| * Merge branch 'schedule-toots' into developmarty hiatt2022-11-302-20/+229
| |\
| | * edit scheduled post keybindingsmarty hiatt2022-11-301-1/+4
| | |
| | * make rescheduling without editing work, also with org-read-datemarty hiatt2022-11-292-5/+12
| | |
| | * display value of --scheduled-for in org-read-date if setmarty hiatt2022-11-291-3/+13
| | |
| | * cancel original scheduled toot if edited/rescheduledmarty hiatt2022-11-292-6/+16
| | |
| | * edit toot: use set-toot-propertiesmarty hiatt2022-11-291-5/+4
| | |