diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-12 15:38:21 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-12 15:38:21 +0100 |
commit | 79158bd0fd0c67aab90f8ae52d4f90b4b167be22 (patch) | |
tree | 8db82caa9f44dbc18c326b092fd1a3f42f1bbd2f /lisp/mastodon-notifications.el | |
parent | ac16395a753aeb9d2fd94ef22ee531227214b3a9 (diff) |
wholly remove parent-toot; use base-toot/-id only
the confusion came from the three different types of statuses we often
encounter:
- toot
- boost/fave
- notification (of boost/fave/mention)
in notifications, we can't just use -tl--toot-id. it will return the notif's
id, not the base toot's.
so we do still fetch base-toot JSON (formerly 'parent-toot prop), and get
base-toot-id from there, else from toot JSON.
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r-- | lisp/mastodon-notifications.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index c0ca684..4e8fbdb 100644 --- a/lisp/mastodon-notifications.el +++ b/lisp/mastodon-notifications.el @@ -223,7 +223,7 @@ Status notifications are given when (defun mastodon-notifications--insert-status (toot body author-byline action-byline id - &optional parent-toot) + &optional base-toot) "Display the content and byline of timeline element TOOT. BODY will form the section of the toot above the byline. @@ -238,10 +238,10 @@ takes a single function. By default it is `mastodon-tl--byline-boosted'. ID is the notification's own id, which is attached as a property. -If the status is a favourite or a boost, PARENT-TOOT is the JSON +If the status is a favourite or a boost, BASE-TOOT is the JSON of the toot responded to." (when toot ; handle rare blank notif server bug - (mastodon-tl--insert-status toot body author-byline action-byline id parent-toot))) + (mastodon-tl--insert-status toot body author-byline action-byline id base-toot))) (defun mastodon-notifications--by-type (note) "Filters NOTE for those listed in `mastodon-notifications--types-alist'." |