branch: elpa/mastodon
commit 95441914a5036c8c3ab386d80443e952ddce467b
Author: marty hiatt <martianhia...@disroot.org>
Commit: marty hiatt <martianhia...@disroot.org>

    byling: try to trim display-name of evil unicode
---
 lisp/mastodon-tl.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index f114d01b86..eb8fd91fbc 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -641,7 +641,8 @@ is extracted from it."
                   toot))) ;; grouped nofifs use account data directly
     (let-alist data
       (propertize (if (and .display_name
-                           (not (string-empty-p .display_name)))
+                           (not (string-empty-p
+                                 (string-trim .display_name 
mastodon-http--evil-unicode-regex))))
                       .display_name
                     .username)
                   'face 'mastodon-display-name-face

Reply via email to