aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@disroot.org>2024-11-01 16:07:08 +0100
committermarty hiatt <martianhiatus@disroot.org>2024-11-01 16:07:08 +0100
commit3ec8a8386b63e00042482bd52be74d48dc160f8a (patch)
tree2bc5c5311ef5214469eba95577f79bd61ca318c1 /lisp/mastodon.el
parentadd6bfceafeb115d4665706ca76f3c1e5105d531 (diff)
parent1bf73f2528e35c28d41d48548ea65ab00bd8f689 (diff)
Merge branch 'non-group-notifs' into develop
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el29
1 files changed, 28 insertions, 1 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index ea4a4e2..32cc671 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -153,6 +153,30 @@ currently, it doesn't seem to have a way to handle custom emoji,
while emojify,el has this feature and mastodon.el implements it."
:type 'boolean)
+;; notifications customizes
+;; moved here because we can load notifs without first loading mastodon.el
+;; or mastodon-notifications.el
+
+(defcustom mastodon-profile-note-in-foll-reqs t
+ "If non-nil, show a user's profile note in follow request notifications."
+ :type '(boolean))
+
+(defcustom mastodon-profile-note-in-foll-reqs-max-length nil
+ "The max character length for user profile note in follow requests.
+Profile notes are only displayed if
+`mastodon-profile-note-in-foll-reqs' is non-nil.
+If unset, profile notes of any size will be displayed, which may
+make them unweildy."
+ :type '(integer))
+
+(defcustom mastodon-images-in-notifs nil
+ "Whether to display attached images in notifications."
+ :type '(boolean))
+
+(defcustom mastodon-group-notifications t
+ "Whether to use grouped notifications."
+ :type '(boolean))
+
(defun mastodon-kill-window ()
"Quit window and delete helper."
(interactive)
@@ -372,7 +396,10 @@ MAX-ID is a request parameter for pagination."
type
(when max-id
`(("max_id" . ,(mastodon-tl--buffer-property 'max-id))))
- nil nil nil "v2")
+ nil nil nil
+ (if (not mastodon-group-notifications)
+ "v1"
+ "v2"))
(with-current-buffer (get-buffer-create buffer)
(use-local-map mastodon-notifications--map))))