diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-08-02 18:52:35 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-02 18:52:35 +0200 |
commit | dcf0747052ce07a368292fd45f75b21502fded90 (patch) | |
tree | 6864db9230dbd46cb6285e2a6cedd6129671ebf2 /lisp/mastodon-toot.el | |
parent | 0575324cd5ec2737b0a6fa9896d26d71362a3094 (diff) |
toot: re-write --reply
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 7358316..00f7ce7 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1177,26 +1177,19 @@ prefixed by >." (alist-get 'account toot))))) (mastodon-toot--compose-buffer (when user - (if booster - (if (and (not (equal user booster)) - (not (member booster mentions))) - ;; different booster, user and mentions: - (mastodon-toot--mentions-to-string (append (list user booster) mentions nil)) - ;; booster is either user or in mentions: - (if (not (member user mentions)) - ;; user not already in mentions: - (mastodon-toot--mentions-to-string (append (list user) mentions nil)) - ;; user already in mentions: - (mastodon-toot--mentions-to-string (copy-sequence mentions)))) - ;; ELSE no booster: + (if (and booster + ;; (if + (and (not (equal user booster)) + (not (member booster mentions)))) + ;; different booster, user and mentions: + (mastodon-toot--mentions-to-string (append (list user booster) mentions nil)) + ;; booster is either user or in mentions or nil: (if (not (member user mentions)) - ;; user not in mentions: + ;; user not already in mentions: (mastodon-toot--mentions-to-string (append (list user) mentions nil)) - ;; user in mentions already: + ;; user already in mentions: (mastodon-toot--mentions-to-string (copy-sequence mentions))))) - id - toot - quote)))) + id toot quote)))) ;;; COMPOSE TOOT SETTINGS |