From 5ad3b322b9cd7ac220438d88297b416e6e2e0bb7 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Thu, 9 Jun 2022 16:24:02 +0200 Subject: [PATCH] fixed search not decoding bio --- js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/search.js b/js/search.js index 6725514..51e1e66 100644 --- a/js/search.js +++ b/js/search.js @@ -21,7 +21,7 @@ async function submit() { for (let i = 0; i < res.length; i++) { let obj = res[i] if(type=="user") { - createPost(obj.User_Name,obj.User_Bio || "wow such empty",0) + createPost(decodeURIComponent(obj.User_Name || ""),decodeURIComponent(obj.User_Bio || "wow such empty"),0) } else { createPost(decodeURIComponent(obj.post_user_name),decodeURIComponent(obj.post_text),obj.post_time,obj.post_special_text,obj.post_id) }