From f5f7493135a24cf06ec3ad344ac9f1c7f5f0ad40 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 4294e1a581..fdead7a977 100644 --- a/.woodpecker/dockerHubTag.yml +++ b/.woodpecker/dockerHubTag.yml @@ -17,5 +17,3 @@ pipeline: event: tag tag: v* -depends_on: - - prSecurityCheck From 9ca850be065989b63495a049c214c68b880e903a 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 5fd47aab70..a61c0a1198 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];