From 0e85f7b5b44f03d0649faab7dbebd0e2f7d36436 Mon Sep 17 00:00:00 2001
From: Elliu <elliu@hashi.re>
Date: Tue, 9 May 2023 22:13:59 +0200
Subject: [PATCH] Take @deurstann/matrix-appservice-discord for html encoding
 fixes

---
 package.json                   |  2 +-
 src/bot.ts                     |  2 +-
 src/discordmessageprocessor.ts |  2 +-
 src/matrixmessageprocessor.ts  |  2 +-
 yarn.lock                      | 24 ++++++++++++------------
 5 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/package.json b/package.json
index f2ea8a3..7880570 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,7 @@
   "homepage": "https://github.com/Half-Shot/matrix-appservice-discord#readme",
   "dependencies": {
     "@mx-puppet/better-discord.js": "^12.5.1",
-    "@mx-puppet/matrix-discord-parser": "^0.1.10",
+    "@deurstann/matrix-discord-parser": "1.10.7",
     "better-sqlite3": "^8.6.0",
     "command-line-args": "^5.1.1",
     "command-line-usage": "^6.1.0",
diff --git a/src/bot.ts b/src/bot.ts
index 632889e..6b7224c 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -15,7 +15,7 @@ limitations under the License.
 */
 
 import * as Discord from "@mx-puppet/better-discord.js";
-import { IDiscordMessageParserResult } from "@mx-puppet/matrix-discord-parser";
+import { IDiscordMessageParserResult } from "@deurstann/matrix-discord-parser";
 import { DiscordBridgeConfig } from "./config";
 import { DiscordClientFactory } from "./clientfactory";
 import { DiscordStore } from "./store";
diff --git a/src/discordmessageprocessor.ts b/src/discordmessageprocessor.ts
index 59df413..f25169e 100644
--- a/src/discordmessageprocessor.ts
+++ b/src/discordmessageprocessor.ts
@@ -22,7 +22,7 @@ import {
     IDiscordMessageParserOpts,
     IDiscordMessageParserCallbacks,
     IDiscordMessageParserResult,
-} from "@mx-puppet/matrix-discord-parser";
+} from "@deurstann/matrix-discord-parser";
 
 const log = new Log("DiscordMessageProcessor");
 
diff --git a/src/matrixmessageprocessor.ts b/src/matrixmessageprocessor.ts
index 364ba8d..68a41b1 100644
--- a/src/matrixmessageprocessor.ts
+++ b/src/matrixmessageprocessor.ts
@@ -24,7 +24,7 @@ import {
     IMatrixMessageParserCallbacks,
     IMatrixMessageParserOpts,
     MatrixMessageParser,
-} from "@mx-puppet/matrix-discord-parser";
+} from "@deurstann/matrix-discord-parser";
 
 const DEFAULT_ROOM_NOTIFY_POWER_LEVEL = 50;
 
diff --git a/yarn.lock b/yarn.lock
index 2fb90c5..04ff52d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -220,6 +220,18 @@
     enabled "2.0.x"
     kuler "^2.0.0"
 
+"@deurstann/matrix-discord-parser@1.10.7":
+  version "1.10.7"
+  resolved "https://registry.yarnpkg.com/@deurstann/matrix-discord-parser/-/matrix-discord-parser-1.10.7.tgz#570d0563c3f916faed877cdf6c06be0f3cf607ee"
+  integrity sha512-Ud/KKGkCdsDMoBW2UZNwiR5UNvkmJJJODAmsSQL/vXh9Iz7zfLqnI/cbP4nUrv1Txd5XqGi/pGSNnZ5Kd6AreQ==
+  dependencies:
+    "@mx-puppet/discord-markdown" "2.3.1"
+    escape-html "^1.0.3"
+    got "^11.6.0"
+    highlight.js "^10.4.1"
+    node-html-parser "^1.4.5"
+    unescape-html "^1.1.0"
+
 "@discordjs/collection@^0.1.6":
   version "0.1.6"
   resolved "https://registry.yarnpkg.com/@discordjs/collection/-/collection-0.1.6.tgz#9e9a7637f4e4e0688fd8b2b5c63133c91607682c"
@@ -362,18 +374,6 @@
     node-emoji "^1.10.0"
     simple-markdown "^0.7.2"
 
-"@mx-puppet/matrix-discord-parser@^0.1.10":
-  version "0.1.10"
-  resolved "https://gitlab.com/api/v4/projects/35066311/packages/npm/@mx-puppet/matrix-discord-parser/-/@mx-puppet/matrix-discord-parser-0.1.10.tgz#0a37a3f9430ff7c29512d29882e25ae738a31283"
-  integrity sha1-Cjej+UMP98KVEtKYguJa5zijEoM=
-  dependencies:
-    "@mx-puppet/discord-markdown" "2.3.1"
-    escape-html "^1.0.3"
-    got "^11.6.0"
-    highlight.js "^10.4.1"
-    node-html-parser "^1.4.5"
-    unescape-html "^1.1.0"
-
 "@nodelib/fs.scandir@2.1.5":
   version "2.1.5"
   resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
-- 
GitLab