diff options
| author | marty hiatt <martianhiatus@riseup.net> | 2024-08-02 18:51:47 +0200 | 
|---|---|---|
| committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-02 18:51:47 +0200 | 
| commit | 7636931151fda918f5303e28aa75f22c12cbc354 (patch) | |
| tree | 7cd67216f86963ab07e2101de0b18d6591519f32 /lisp | |
| parent | 9987d32bcf0c920cebdd99e26c135295351bb259 (diff) | |
toot: re-write mentions-to-string
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mastodon-toot.el | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 75b0f28..7af0fa3 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1013,9 +1013,9 @@ Buffer-local variable `mastodon-toot-previous-window-config' holds the config."  (defun mastodon-toot--mentions-to-string (mentions)    "Apply `mastodon-toot--process-local' function to each mention in MENTIONS.  Remove empty string (self) from result and joins the sequence with whitespace." -  (mapconcat (lambda (mention) mention) -	     (remove "" (mapcar #'mastodon-toot--process-local mentions)) -             " ")) +  (let ((mentions (remove "" +                          (mapcar #'mastodon-toot--process-local mentions)))) +    (mapconcat #'identity mentions " ")))  (defun mastodon-toot--process-local (acct)    "Add domain to local ACCT and replace the curent user name with \"\".  | 
