From f49907e5e56fad67894e4aee203a441a0eb7e536 Mon Sep 17 00:00:00 2001 From: heguro Date: Sun, 24 May 2020 05:45:15 +0900 Subject: [PATCH] Fix: cannot sort column when using some kind of TL --- app/js/tl/tl.js | 2 +- app/js/ui/sort.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/tl/tl.js b/app/js/tl/tl.js index 421d7c44..f70ecc60 100644 --- a/app/js/tl/tl.js +++ b/app/js/tl/tl.js @@ -851,7 +851,7 @@ function cap(type, data, acct_id) { } else if (type == 'bookmark') { var response = 'Bookmarks' } else if (type == 'utl') { - var response = 'User TL(' + data.acct + ')' + var response = 'User TL(' + escapeHTML(data.acct) + ')' } return response } diff --git a/app/js/ui/sort.js b/app/js/ui/sort.js index fc854209..428dece6 100644 --- a/app/js/ui/sort.js +++ b/app/js/ui/sort.js @@ -33,7 +33,7 @@ function sortLoad () { var acctdata = user + "@" + domain; } - var html = '
  • ' + icon(acct.type) + '
    ' + cap(acct.type, escapeHTML(acct.data), acct.domain) + '
  • '; $("#sort").append(html);