FIX: Display emojis in search result blurbs

FIX: Display emojis in search result blurbs

diff --git a/app/assets/javascripts/discourse/lib/search.js.es6 b/app/assets/javascripts/discourse/lib/search.js.es6
index 28380dd..b8e7dd0 100644
--- a/app/assets/javascripts/discourse/lib/search.js.es6
+++ b/app/assets/javascripts/discourse/lib/search.js.es6
@@ -4,6 +4,7 @@ import Category from "discourse/models/category";
 import { search as searchCategoryTag } from "discourse/lib/category-tag-search";
 import userSearch from "discourse/lib/user-search";
 import { userPath } from "discourse/lib/url";
+import { emojiUnescape } from "discourse/lib/text";
 import User from "discourse/models/user";
 import Post from "discourse/models/post";
 import Topic from "discourse/models/topic";
@@ -31,6 +32,7 @@ export function translateResults(results, opts) {
     }
     post = Post.create(post);
     post.set("topic", topicMap[post.topic_id]);
+    post.blurb = emojiUnescape(post.blurb);
     return post;
   });

GitHub sha: cf230163

1 Like

I think this is worth a test to prevent this from regressing :+1:

1 Like

DEV: Add qunit test for emojis in search blurbs