diff options
author | mousebot <mousebot@riseup.net> | 2021-05-17 17:17:36 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-05-17 17:17:36 +0200 |
commit | ab98f3b435e05a0421c297c8f47aa1239b7a4886 (patch) | |
tree | 76aa7d92e5fd0cdd595f0d307b488c9444115709 /lisp/mastodon-tl.el | |
parent | a52f25ce26cd6a9fe8d88d893eb8500ad1292677 (diff) |
split mastodon-tl--timeline back into two functions.
this is to prevent pinned toots appearing as such when this function is used elsewhere
than for a profile. e.g. the tag search.
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 2c9c080..e186bd5 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -674,10 +674,15 @@ it is `mastodon-tl--byline-boosted'" 'mastodon-tl--byline-boosted)) (defun mastodon-tl--timeline (toots) + "Display each toot in TOOTS." + (mapc 'mastodon-tl--toot toots) + (goto-char (point-min))) + +(defun mastodon-tl--timeline-pinned (toots) "Display each toot in TOOTS. If any toots are pinned, display them first." - (let* ((pinned-list)) + (let ((pinned-list)) (mapc (lambda (toot) (when (equal (cdr (assoc 'pinned toot)) 't) (push toot pinned-list))) |