diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-07-30 09:54:18 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-07-30 09:54:18 +0200 |
commit | bc83b400b14240820a10606279709d8e5dfcdf9f (patch) | |
tree | 03a9b02362ada56f1387d60c8000dc29f6305bc4 /lisp/mastodon-toot.el | |
parent | bb1b33e2fb498188f57d5b26c3405802e2cc58f1 (diff) |
fix unfolding faved/bookmarked toots
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 3a88f33..a935c9e 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -434,7 +434,7 @@ ACTION is a symbol, either `favourite' or `boost.'" (mastodon-toot--action-success (if boost-p (mastodon-tl--symbol 'boost) (mastodon-tl--symbol 'favourite)) - byline-region remove)) + byline-region remove item-json)) (message "%s #%s" (if boost-p msg action) id))))))))))) (defun mastodon-toot--inc-or-dec (count subtract) @@ -499,7 +499,8 @@ SUBTRACT means we are un-favouriting or unboosting, so we decrement." (message (if bookmarked-p "Bookmark removed!" "Toot bookmarked!")) - (remove (when bookmarked-p t))) + (remove (when bookmarked-p t)) + (item-json (mastodon-tl--property 'item-json))) (if (not byline-region) (user-error "Nothing to %s here?!?" action) (mastodon-toot--action @@ -510,7 +511,7 @@ SUBTRACT means we are un-favouriting or unboosting, so we decrement." (cdr byline-region) (list 'bookmarked-p (not bookmarked-p)))) (mastodon-toot--action-success bookmark-str - byline-region remove) + byline-region remove item-json) (message "%s #%s" message id))))))))) (defun mastodon-toot--list-toot-boosters () |