Merge dev

This commit is contained in:
ThatOneCalculator 2023-02-05 21:08:39 -08:00
commit 998e6fd4d2
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 6 additions and 1 deletions

View file

@ -16,4 +16,3 @@ pipeline:
# Push new version when version tag is created # Push new version when version tag is created
event: tag event: tag
tag: v* tag: v*

View file

@ -71,6 +71,12 @@ export async function toDbReaction(
if (Object.keys(legacies).includes(reaction)) return legacies[reaction]; if (Object.keys(legacies).includes(reaction)) return legacies[reaction];
// Convert old heart to new // Convert old heart to new
if (reaction === "♥️") return "❤️"; if (reaction === "♥️") return "❤️";
// Allow unicode reactions
const match = emojiRegex.exec(reaction);
if (match) {
const unicode = match[0];
return unicode;
}
// Allow unicode reactions // Allow unicode reactions
const match = emojiRegex.exec(reaction); const match = emojiRegex.exec(reaction);