diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-12 17:38:34 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-12 17:38:34 +0100 |
commit | 068ab5a5cd17cb04741598ef631d13da004ca8bc (patch) | |
tree | 09d3f611e60b20b93bb10a681c89566ddd41f0bc /lisp | |
parent | 32939e5ea4d44b05a4136b9cda64ff3d21728750 (diff) |
allow boost/fave of base toot from notifs
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-toot.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 65649b8..0571c3b 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -294,9 +294,13 @@ TYPE is a symbol, either 'favourite or 'boost." (cond ;; actually there's nothing wrong with faving/boosting own toots! ;;((mastodon-toot--own-toot-p (mastodon-tl--property 'toot-json)) ;;(error "You can't %s your own toots" action-string)) - ((equal "reblog" toot-type) + ;; & nothing wrong with faving/boosting own toots from notifs: + ;; this boosts/faves the base toot, not the notif status + ((and (equal "reblog" toot-type) + (not (string= (mastodon-tl--get-endpoint) "notifications"))) (error "You can't %s boosts" action-string)) - ((equal "favourite" toot-type) + ((and (equal "favourite" toot-type) + (not (string= (mastodon-tl--get-endpoint) "notifications"))) (error "Your can't %s favourites" action-string)) (t (mastodon-toot--action |