branch: elpa/mastodon
commit e53abb6f584c8013e09da203a8c4a7f2d1d9bfc9
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>

    update-json: only use v2 api for notifs! FIX #649.
---
 lisp/mastodon-tl.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a200e653b4..a5cbb13794 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -3389,7 +3389,11 @@ the current view.
 VERSION is the API version to use, as grouped notifs use v2."
   (let* ((args `(("since_id" . ,(mastodon-tl--as-string id))))
          (args (append args params))
-         (url (mastodon-http--api endpoint version)))
+         (url (mastodon-http--api
+               endpoint
+               (when (and mastodon-group-notifications
+                          (string= endpoint "notifications"))
+                 "v2"))))
     (mastodon-http--get-json url args)))
 
 ;; TODO: add this to new posts in some cases, e.g. in thread view.

Reply via email to