diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-10-29 12:34:37 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-10-29 12:34:37 +0200 |
commit | 50bd192c33e018ca207fe6734597786b2c17fc3c (patch) | |
tree | e4721d186fa6906fe05cc0c016591ef4bdfd3878 /lisp | |
parent | 7b5b03b43f1287462775807f3bc4015473ad38c0 (diff) |
Revert "FIX getting of 'parent-toot properties in mastodon-toot--reply"
this FIXes the FIX and the other FIX so that it should finally be FIXXXED
This reverts commit 020c8efaa235e67aaa07284beae84dd9134fbc90.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-toot.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 79a99ad..a96bdbf 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -774,7 +774,10 @@ 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! + ;; we also cannot use --field because we need to get a different property first + (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)) |