Merge branch 'develop' of codeberg.org:calckey/calckey into develop

This commit is contained in:
ThatOneCalculator 2023-02-05 21:04:03 -08:00
commit bb0fe93631
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
2 changed files with 7 additions and 2 deletions

View File

@ -17,5 +17,3 @@ pipeline:
event: tag event: tag
tag: v* tag: v*
depends_on:
- prSecurityCheck

View File

@ -72,6 +72,13 @@ export async function toDbReaction(
// 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;
}
const custom = reaction.match(/^:([\w+-]+)(?:@\.)?:$/); const custom = reaction.match(/^:([\w+-]+)(?:@\.)?:$/);
if (custom) { if (custom) {
const name = custom[1]; const name = custom[1];