aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-toot.el8
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