From 71c68ba64c5be9d6bcf473d46aea2c0977b80048 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 4 Oct 2024 11:42:52 +0200 Subject: add images in notifs customize --- lisp/mastodon-notifications.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lisp/mastodon-notifications.el') diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index 1c2aad7..1a1c4ed 100644 --- a/lisp/mastodon-notifications.el +++ b/lisp/mastodon-notifications.el @@ -70,6 +70,10 @@ If unset, profile notes of any size will be displayed, which may make them unweildy." :type '(integer)) +(defcustom mastodon-notifications--images-in-notifs nil + "Whether to display attached images in notifications." + :type '(boolean)) + (defvar mastodon-tl--buffer-spec) (defvar mastodon-tl--display-media-p) @@ -301,6 +305,8 @@ Call its function in that list on NOTE." (when fun (funcall fun note) (when mastodon-tl--display-media-p + ;; images-in-notifs custom is handeld in + ;; `mastodon-tl--media-attachment', not here (mastodon-media--inline-images start-pos (point)))))) (defun mastodon-notifications--timeline (json) -- cgit v1.2.3