[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon c09935b100 37/50: tl: remove stale args to insert
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon c09935b100 37/50: tl: remove stale args to insert status, inc. action-byline arg |
Date: |
Sat, 2 Nov 2024 13:00:56 -0400 (EDT) |
branch: elpa/mastodon
commit c09935b100986a94e4265ca5f6c152d17fabd9e6
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>
tl: remove stale args to insert status, inc. action-byline arg
(they were used when notifs didn't have its own insert fun.)
more clean up tl--insert-status
---
lisp/mastodon-tl.el | 33 +++++++--------------------------
1 file changed, 7 insertions(+), 26 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 625b11bc61..f321e41fec 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -799,7 +799,7 @@ LETTER is a string, F for favourited, B for boosted, or K
for bookmarked."
(defun mastodon-tl--byline (toot &optional detailed-p
domain base-toot group ts)
- "Generate byline for TOOT.
+ "Generate (bottom) byline for TOOT.
AUTHOR-BYLINE is a function for adding the author portion of
the byline that takes one variable.
DETAILED-P means display more detailed info. For now
@@ -1653,21 +1653,9 @@ Runs `mastodon-tl--render-text' and fetches poll or
media."
(string= reply-to-id prev-id)))
(defun mastodon-tl--insert-status
- (toot body action-byline &optional id base-toot
- detailed-p thread domain unfolded no-byline)
+ (toot body &optional detailed-p thread domain unfolded no-byline)
"Display the content and byline of timeline element TOOT.
BODY will form the section of the toot above the byline.
-AUTHOR-BYLINE is an optional function for adding the author
-portion of the byline that takes one variable. By default it is
-`mastodon-tl--byline-author'.
-ACTION-BYLINE is also an optional function for adding an action,
-such as boosting favouriting and following to the byline. It also
-takes a single function. By default it is
-`mastodon-tl--byline-boost'.
-ID is that of the status if it is a notification, which is
-attached as a `item-id' property if provided. If the
-status is a favourite or boost notification, BASE-TOOT is the
-JSON of the toot responded to.
DETAILED-P means display more detailed info. For now
this just means displaying toot client.
THREAD means the status will be displayed in a thread view.
@@ -1688,7 +1676,7 @@ NO-BYLINE means just insert toot body, used for folding."
(propertize ;; body only:
(concat
"\n"
- (funcall action-byline toot)
+ (mastodon-tl--byline-boost toot) ;; top byline (boost)
;; relpy symbol:
(when (and after-reply-status-p thread)
(concat (mastodon-tl--symbol 'replied)
@@ -1708,17 +1696,11 @@ NO-BYLINE means just insert toot body, used for
folding."
"\n"
(if no-byline
""
- (mastodon-tl--byline toot detailed-p domain base-toot)))
+ (mastodon-tl--byline toot detailed-p domain)))
'item-type 'toot
- 'item-id (or id ; notification's own id
- (alist-get 'id toot)) ; toot id
- 'base-item-id (mastodon-tl--item-id
- ;; if status is a notif, get id from base-toot
- ;; (-tl--item-id toot) will not work here:
- (or base-toot
- toot)) ; else normal toot with reblog check
+ 'item-id (alist-get 'id toot) ; toot id
+ 'base-item-id (mastodon-tl--item-id toot) ; with reblog check
'item-json toot
- 'base-toot base-toot
'cursor-face 'mastodon-cursor-highlight-face
'toot-foldable toot-foldable
'toot-folded (and toot-foldable (not unfolded)))
@@ -1793,8 +1775,7 @@ NO-CW means treat content warnings as unfolded."
(unless (and filtered (assoc "hide" filters)) ;; no insert
(mastodon-tl--insert-status
toot (mastodon-tl--clean-tabs-and-nl spoiler-or-content)
- #'mastodon-tl--byline-boost nil nil detailed-p
- thread domain unfolded no-byline))))
+ detailed-p thread domain unfolded no-byline))))
(defun mastodon-tl--timeline (toots &optional thread domain no-byline)
"Display each toot in TOOTS.
- [nongnu] elpa/mastodon 464d2e4634 20/50: notifs: factor an action-byline fun (maybe move into insert-note), (continued)
- [nongnu] elpa/mastodon 464d2e4634 20/50: notifs: factor an action-byline fun (maybe move into insert-note), ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 89f93a1316 08/50: remove ACCOUNT and TYPE from our byline functions., ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon db0e6bdf54 12/50: Merge branch 'develop' into non-group-notifs, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 2b281fcc49 13/50: byte-compile, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 411e9f22e0 14/50: grouped notifs: top byline create with account data, not toot. #612 half fixed., ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 380c6be86f 22/50: keep cleaning up notifs insert note, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon c7a3ed75ab 26/50: fold-toot - respect CW state, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 8a8b13dc0a 21/50: --byline: pull fave/boost/edit/visibility from base toot if present, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 1bf73f2528 33/50: remove elsa from Cask, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon ee25cb9b02 41/50: update point after widget. FIX #615, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon c09935b100 37/50: tl: remove stale args to insert status, inc. action-byline arg,
ELPA Syncer <=
- [nongnu] elpa/mastodon b47390993b 46/50: Merge branch 'poll-var' into develop, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 94ea642a1a 38/50: notifs: improve byline docstrings for new byline logic, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 071c33eed2 32/50: Merge branch 'develop' into non-group-notifs, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon babb3a1adf 28/50: fold-toot - respect CW state, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 1606b34c5d 45/50: Merge branch 'read-less' into develop, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 7623478121 48/50: bump, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 7af46336f2 42/50: add read less button to unfolded long posts (read more). FIX #614, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon bf82092dde 44/50: autoload ht-get, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 639745a885 04/50: move notifs customizes into mastodon.el, ELPA Syncer, 2024/11/02
- [nongnu] elpa/mastodon 0e75fc74ee 01/50: group-notifs custom (for servers without). #608. WIP., ELPA Syncer, 2024/11/02