diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-04-16 00:47:17 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-16 00:47:17 +0900 |
| commit | fa75b40dfd565c437da99c84fbefed564d4b4eb1 (patch) | |
| tree | 3d2baa3b493e087cdbdc095eb49dcf046f868f37 /src/misc | |
| parent | 0以下のリアクションは送らないように Resolve #6263 (#6264) (diff) | |
| download | sharkey-fa75b40dfd565c437da99c84fbefed564d4b4eb1.tar.gz sharkey-fa75b40dfd565c437da99c84fbefed564d4b4eb1.tar.bz2 sharkey-fa75b40dfd565c437da99c84fbefed564d4b4eb1.zip | |
リアクションの修正 (#6260)
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/reaction-lib.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/reaction-lib.ts b/src/misc/reaction-lib.ts index d59fb67a6b..e9a9d4f7c9 100644 --- a/src/misc/reaction-lib.ts +++ b/src/misc/reaction-lib.ts @@ -70,7 +70,7 @@ export async function toDbReaction(reaction?: string | null, reacterHost?: strin return unicode.match('\u200d') ? unicode : unicode.replace(/\ufe0f/g, ''); } - const custom = reaction.match(/^:([\w+-]+):$/); + const custom = reaction.match(/^:([\w+-]+)(?:@\.)?:$/); if (custom) { const name = custom[1]; const emoji = await Emojis.findOne({ |