summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ReactionService.ts
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2024-02-19 10:47:42 +0100
committerMarie <marie@kaifa.ch>2024-02-19 10:47:42 +0100
commit10bfc616706e2903e3a7fd2b461ccfff71b09029 (patch)
tree852f49cd59c678d5a28bba755e0d75255b139c3a /packages/backend/src/core/ReactionService.ts
parentmerge: Bridged error message for when you try search for a post and it fails ... (diff)
parentFix(frontend): オートコンプリートが出るべき状況で出ない... (diff)
downloadsharkey-10bfc616706e2903e3a7fd2b461ccfff71b09029.tar.gz
sharkey-10bfc616706e2903e3a7fd2b461ccfff71b09029.tar.bz2
sharkey-10bfc616706e2903e3a7fd2b461ccfff71b09029.zip
merge: upstream
Diffstat (limited to 'packages/backend/src/core/ReactionService.ts')
-rw-r--r--packages/backend/src/core/ReactionService.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts
index 6cce4a61ea..ace6fc69b6 100644
--- a/packages/backend/src/core/ReactionService.ts
+++ b/packages/backend/src/core/ReactionService.ts
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: syuilo and other misskey contributors
+ * SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -30,12 +30,12 @@ import { RoleService } from '@/core/RoleService.js';
import { FeaturedService } from '@/core/FeaturedService.js';
import { trackPromise } from '@/misc/promise-tracker.js';
-const FALLBACK = '❤';
+const FALLBACK = '\u2764';
const PER_NOTE_REACTION_USER_PAIR_CACHE_MAX = 16;
const legacies: Record<string, string> = {
'like': '👍',
- 'love': '❤', // ここに記述する場合は異体字セレクタを入れない
+ 'love': '\u2764', // ハート、異体字セレクタを入れない
'laugh': '😆',
'hmm': '🤔',
'surprise': '😮',
@@ -123,7 +123,7 @@ export class ReactionService {
let reaction = _reaction ?? FALLBACK;
if (note.reactionAcceptance === 'likeOnly' || ((note.reactionAcceptance === 'likeOnlyForRemote' || note.reactionAcceptance === 'nonSensitiveOnlyForLocalLikeOnlyForRemote') && (user.host != null))) {
- reaction = '❤️';
+ reaction = '\u2764';
} else if (_reaction) {
const custom = reaction.match(isCustomEmojiRegexp);
if (custom) {