aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-08 19:59:03 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-08 19:59:03 +0200
commitf3298f6d51b78cd904f144d54f3b229a7bb70c6b (patch)
tree2b6efe8266a159a52ad6d3e4762e6560432840a2 /lisp
parent6493d0dec1cc311ade347327c2b8f9656779abba (diff)
rename profile--add-author-bylines to profile--format-user
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-profile.el12
-rw-r--r--lisp/mastodon-tl.el2
2 files changed, 6 insertions, 8 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 68d74df..bd59bac 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -163,7 +163,7 @@ NO-REBLOGS means do not display boosts in statuses."
(mastodon-profile--make-profile-buffer-for
mastodon-profile--account
"following"
- #'mastodon-profile--add-author-bylines
+ #'mastodon-profile--format-user
nil
:headers)
(error "Not in a mastodon profile")))
@@ -175,7 +175,7 @@ NO-REBLOGS means do not display boosts in statuses."
(mastodon-profile--make-profile-buffer-for
mastodon-profile--account
"followers"
- #'mastodon-profile--add-author-bylines
+ #'mastodon-profile--format-user
nil
:headers)
(error "Not in a mastodon profile")))
@@ -706,19 +706,17 @@ IMG-TYPE is the JSON key from the account data."
(message "Loading your profile...")
(mastodon-profile--show-user (mastodon-auth--get-account-name)))
-(defun mastodon-profile--add-author-bylines (tootv)
- "Convert TOOTV into a author-bylines and insert.
+(defun mastodon-profile--format-user (tootv)
+ "Convert TOOTV into author-bylines and insert.
Also insert their profile note.
Used to view a user's followers and those they're following."
- ;;FIXME change the name of this fun now that we've edited what it does!
(let ((inhibit-read-only t))
(unless (seq-empty-p tootv)
(mapc (lambda (toot)
(let ((start-pos (point)))
(insert "\n"
(propertize
- (mastodon-tl--byline-author `((account . ,toot))
- :avatar)
+ (mastodon-tl--byline-author `((account . ,toot)) :avatar)
'byline 't
'toot-id (alist-get 'id toot)
'base-toot-id (mastodon-tl--toot-id toot)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index cfa872b..1cd5f86 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -457,7 +457,7 @@ With arg AVATAR, include the account's avatar image."
(concat
;; avatar insertion moved up to `mastodon-tl--byline' by default in order
;; to be outside of text prop 'byline t. arg avatar is used by
- ;; `mastodon-profile--add-author-bylines'
+ ;; `mastodon-profile--format-user'
(when (and avatar
mastodon-tl--show-avatars
mastodon-tl--display-media-p