diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-04-24 21:21:57 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-04-24 21:21:57 +0200 |
commit | ff758ff681e4549913998f461ee90562f04ee7e3 (patch) | |
tree | 0d98fd98a6387649943f23b27e3d1251c9ca1ea5 /lisp/mastodon-tl.el | |
parent | 0739636698d83b6d25d58b832a8466c131e92450 (diff) |
store notif type as prop so we can limit item actions by notif type
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index c3147b6..fa0c7bb 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1434,7 +1434,8 @@ THREAD means the status will be displayed in a thread view." (reply-to-id (alist-get 'in_reply_to_id toot)) (after-reply-status-p (when (and thread reply-to-id) - (mastodon-tl--after-reply-status reply-to-id)))) + (mastodon-tl--after-reply-status reply-to-id))) + (type (alist-get 'type toot))) (insert (propertize (concat @@ -1461,7 +1462,8 @@ THREAD means the status will be displayed in a thread view." toot)) ; else normal toot with reblog check 'item-json toot 'base-toot base-toot - 'cursor-face 'mastodon-cursor-highlight-face) + 'cursor-face 'mastodon-cursor-highlight-face + 'notification-type type) "\n") (when mastodon-tl--display-media-p (mastodon-media--inline-images start-pos (point))))) |