aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authoralexjgriffith <griffitaj @gmail.com>2017-05-05 13:26:53 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-05-05 14:59:40 -0400
commita5005a12a912c97ec31d8ace6f7fc9f31151e7a6 (patch)
tree820b40cc6045f3d2f52a5f50551ed1ef7e93f548 /lisp/mastodon-tl.el
parent73c15a03a9d7f799f7ab1557d3528fff916df265 (diff)
Moved decode-coding-string out of tl functions
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 2964942..67a452d 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -103,11 +103,8 @@ Optionally start from POS."
(defun mastodon-tl--byline-author (toot)
"Propertize author of TOOT."
(let* ((account (cdr (assoc 'account toot)))
- ;; It may not be necissary to decode the handle
- (handle (decode-coding-string
- (cdr (assoc 'acct account))'utf-8))
- (name (decode-coding-string
- (cdr (assoc 'display_name account)) 'utf-8)))
+ (handle (cdr (assoc 'acct account)))
+ (name (cdr (assoc 'display_name account))))
(concat
(propertize name 'face 'warning)
" (@"
@@ -158,7 +155,7 @@ Return value from boosted content if available."
also render the html"
(propertize
(with-temp-buffer
- (insert (decode-coding-string string 'utf-8))
+ (insert string)
(when render
(let ((shr-use-fonts nil))
(shr-render-region (point-min) (point-max))))
@@ -194,7 +191,7 @@ also render the html"
(let ((content (mastodon-tl--field 'content toot))
(shr-use-fonts nil))
(propertize (with-temp-buffer
- (insert (decode-coding-string content 'utf-8))
+ (insert content)
(shr-render-region (point-min) (point-max))
(buffer-string))
'face 'default)))