diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-05-21 13:02:20 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-05-21 13:02:20 +0200 |
commit | 18e44cd82313952d35be7d8b8c5ca86a885d4703 (patch) | |
tree | 1c6bf2829dd23cba54f4e2b831b6edfc9d8c78cf /lisp/mastodon-toot.el | |
parent | d54aa9aa3e4276b9519ff9123e9dc0c123d9dd3b (diff) | |
parent | e6bdc008ed3f66fd5c6903c491e1cf6d4dafd2f3 (diff) |
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index a48d5d9..aff201d 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -459,7 +459,14 @@ SUBTRACT means we are un-favouriting or unboosting, so we decrement." (interactive) (mastodon-tl--do-if-item-strict (let* ((id (mastodon-tl--property 'base-item-id)) - (bookmarked-p (mastodon-tl--property 'bookmarked-p)) + (bookmarked-p + (mastodon-tl--property + 'bookmarked-p + (if (mastodon-tl--property 'byline :no-move) + ;; no move if not in byline, the idea being if in body, we do + ;; move forward to byline to toggle correctly. + ;; alternatively we could bookmarked-p whole posts. + :no-move))) (byline-region (when id (mastodon-tl--find-property-range 'byline (point)))) (action (if bookmarked-p "unbookmark" "bookmark")) |