From 4a33d7acaa8ddedc9ac2414663f1f6ada737e643 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Sat, 4 Feb 2023 20:50:55 +0000 Subject: [PATCH 1/2] Update '.woodpecker/dockerHubTag.yml' --- .woodpecker/dockerHubTag.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.woodpecker/dockerHubTag.yml b/.woodpecker/dockerHubTag.yml index 4294e1a58..fdead7a97 100644 --- a/.woodpecker/dockerHubTag.yml +++ b/.woodpecker/dockerHubTag.yml @@ -17,5 +17,3 @@ pipeline: event: tag tag: v* -depends_on: - - prSecurityCheck From 029eb6a521f1764cbdf049a7aed99b2ab6f26bdf Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Sun, 5 Feb 2023 12:36:50 +0100 Subject: [PATCH 2/2] fix: reactions using unicode weren't processed --- packages/backend/src/misc/reaction-lib.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/backend/src/misc/reaction-lib.ts b/packages/backend/src/misc/reaction-lib.ts index 5fd47aab7..a61c0a119 100644 --- a/packages/backend/src/misc/reaction-lib.ts +++ b/packages/backend/src/misc/reaction-lib.ts @@ -72,6 +72,13 @@ export async function toDbReaction( // Convert old heart to new if (reaction === "♥️") return "❤️"; + // Allow unicode reactions + const match = emojiRegex.exec(reaction); + if (match) { + const unicode = match[0]; + return unicode; + } + const custom = reaction.match(/^:([\w+-]+)(?:@\.)?:$/); if (custom) { const name = custom[1];