emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon 52b7775cb7 19/27: views: ensure things have item-


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 52b7775cb7 19/27: views: ensure things have item-type prop, and string-trim scheduleds
Date: Fri, 23 Feb 2024 13:00:56 -0500 (EST)

branch: elpa/mastodon
commit 52b7775cb7ce96fb023078ed5048f8bd5c080bc9
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>

    views: ensure things have item-type prop, and string-trim scheduleds
---
 lisp/mastodon-views.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el
index 8e04434249..d0f310b78c 100644
--- a/lisp/mastodon-views.el
+++ b/lisp/mastodon-views.el
@@ -509,11 +509,11 @@ JSON is the data returned by the server."
   "Insert scheduled TOOT into the buffer."
   (let-alist toot
     (insert
-     (propertize (concat .params.text
+     (propertize (concat (string-trim .params.text)
                          " | "
                          (mastodon-toot--iso-to-human .scheduled_at))
                  'byline t ; so we nav here
-                 'item-id "0" ; so we nav here
+                 'item-type 'scheduled ; so we nav here
                  'face 'font-lock-comment-face
                  'keymap mastodon-views--scheduled-map
                  'scheduled-json toot
@@ -619,6 +619,7 @@ JSON is the filters data."
     (insert
      (propertize filter-string
                  'item-id id ;for goto-next-filter compat
+                 'item-type 'filter
                  'phrase phrase
                  'byline t) ;for goto-next-filter compat
      "\n\n")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]