FIX: Display emojis in search result blurbs

This commit is contained in:
Penar Musaraj 2019-09-10 11:11:15 -04:00
parent 0d22beb81d
commit cf23016360
1 changed files with 2 additions and 0 deletions

View File

@ -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;
});