diff options
author | mousebot <mousebot@riseup.net> | 2021-10-21 22:01:02 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-10-21 22:01:02 +0200 |
commit | 7ba038a8c356ff7df4885485a2f4fe69e67cfc34 (patch) | |
tree | f081e94c0602b1ed2d4774c2f09f197bbfbecc60 /lisp/mastodon-tl.el | |
parent | 6d6c0a1c2b105e8adfdb24e6d6a2a65ebe78d1f3 (diff) | |
parent | 39bf919327a03b8e34ff28f08422b2cb6d3eab26 (diff) |
Merge branch 'develop' into imgcaching
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 48237d9..904d850 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -389,7 +389,8 @@ favouriting and following to the byline. It also takes a single function. By default it is `mastodon-tl--byline-boosted'" (let ((parsed-time (date-to-time (mastodon-tl--field 'created_at toot))) (faved (equal 't (mastodon-tl--field 'favourited toot))) - (boosted (equal 't (mastodon-tl--field 'reblogged toot)))) + (boosted (equal 't (mastodon-tl--field 'reblogged toot))) + (visibility (mastodon-tl--field 'visibility toot))) (concat ;; (propertize "\n | " 'face 'default) (propertize @@ -400,6 +401,14 @@ By default it is `mastodon-tl--byline-boosted'" (format "(%s) " (propertize "F" 'face 'mastodon-boost-fave-face))) (funcall author-byline toot) + (cond ((equal visibility "direct") + (if (fontp (char-displayable-p #10r128274)) + " 🔒" + " [direct]")) + ((equal visibility "private") + (if (fontp (char-displayable-p #10r9993)) + " ✉" + " [followers]"))) (funcall action-byline toot) " " ;; TODO: Once we have a view for toot (responses etc.) make |