diff --git a/app/soapbox/features/emoji/search.ts b/app/soapbox/features/emoji/search.ts index a24a67e143..b385a61497 100644 --- a/app/soapbox/features/emoji/search.ts +++ b/app/soapbox/features/emoji/search.ts @@ -29,7 +29,7 @@ export const addCustomToPool = (customEmojis: EmojiMart[]) => { }; const search = (str: string, { maxResults = 5, custom }: searchOptions = {}, custom_emojis?: any): Emoji[] => { - return index.search(str, maxResults, { suggest: true }) + return index.search(str, maxResults) .flatMap(id => { if (Number.isInteger(id)) { const { shortcode, static_url } = custom_emojis.get(id).toJS(); diff --git a/package.json b/package.json index 2a35d4ab83..a01e785abe 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,6 @@ "dotenv": "^8.0.0", "emoji-datasource": "5.0.0", "emoji-mart": "^5.1.0", - "entities": "^4.3.1", "es6-symbol": "^3.1.1", "escape-html": "^1.0.3", "exif-js": "^2.3.0", diff --git a/yarn.lock b/yarn.lock index db1eb22166..f7ca40a78f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5094,11 +5094,6 @@ entities@^2.0.0: resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== -entities@^4.3.1: - version "4.3.1" - resolved "https://registry.yarnpkg.com/entities/-/entities-4.3.1.tgz#c34062a94c865c322f9d67b4384e4169bcede6a4" - integrity sha512-o4q/dYJlmyjP2zfnaWDUC6A3BQFmVTX+tZPezK7k0GLSU9QYCauscf5Y+qcEPzKL+EixVouYDgLQK5H9GrLpkg== - entities@~2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.3.tgz#5c487e5742ab93c15abb5da22759b8590ec03b7f"