diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-02-20 19:43:45 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-02-20 19:43:45 +0100 |
commit | 52b7775cb7ce96fb023078ed5048f8bd5c080bc9 (patch) | |
tree | 2e240d9fc134858900a0a824f58d21e6ac38276e /lisp/mastodon-views.el | |
parent | 63120440fa0e7c981c22d687a778b5143fc18639 (diff) |
views: ensure things have item-type prop, and string-trim scheduleds
Diffstat (limited to 'lisp/mastodon-views.el')
-rw-r--r-- | lisp/mastodon-views.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el index 8e04434..d0f310b 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"))) |