diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-09-20 14:44:22 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-09-20 14:45:33 +0200 |
commit | e8432a9bc8c2a50f4dc964884e48bc8bfd210365 (patch) | |
tree | 4666dfda3d2b2c4675a90581462628e987e0c262 /lisp/mastodon-toot.el | |
parent | 2b484837ef8a0e2874284ff7be6d531e9b45d610 (diff) |
FIX getting of 'parent-toot properties in mastodon-toot--reply
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 5ec58dd..7821949 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -761,7 +761,9 @@ Customize `mastodon-toot-display-orig-in-reply-buffer' to display text of the toot being replied to in the compose buffer." (interactive) (let* ((toot (mastodon-tl--property 'toot-json)) - (parent (mastodon-tl--property 'parent-toot)) ; for new notifs handling + ;; NB: we cannot use mastodon-tl--property for 'parent-toot + ;; because if it doesn't have one, it is fetched from next toot! + (parent (get-text-property (point) 'parent-toot)) ; for new notifs handling (id (mastodon-tl--as-string (mastodon-tl--field 'id (or parent toot)))) (account (mastodon-tl--field 'account toot)) |