summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/kernel
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-04-14 00:42:59 +0900
committerGitHub <noreply@github.com>2020-04-14 00:42:59 +0900
commit9b07c5af05a8be8114af860893d68614e4ee5ca2 (patch)
tree3ca2587fe8e4d0bb845d2f42f443e21d224c4d6f /src/remote/activitypub/kernel
parentchore(client): :art: (diff)
downloadsharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.tar.gz
sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.tar.bz2
sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.zip
リモートのカスタム絵文字リアクションを表示できるように (#6239)
* リモートのカスタム絵文字リアクションを表示できるように * AP * DBマイグレーション * ローカルのリアクションの. * fix * fix * fix * space
Diffstat (limited to 'src/remote/activitypub/kernel')
-rw-r--r--src/remote/activitypub/kernel/like.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/remote/activitypub/kernel/like.ts b/src/remote/activitypub/kernel/like.ts
index b25f80aedc..a877110303 100644
--- a/src/remote/activitypub/kernel/like.ts
+++ b/src/remote/activitypub/kernel/like.ts
@@ -1,7 +1,7 @@
import { IRemoteUser } from '../../../models/entities/user';
import { ILike, getApId } from '../type';
import create from '../../../services/note/reaction/create';
-import { fetchNote } from '../models/note';
+import { fetchNote, extractEmojis } from '../models/note';
export default async (actor: IRemoteUser, activity: ILike) => {
const targetUri = getApId(activity.object);
@@ -11,6 +11,8 @@ export default async (actor: IRemoteUser, activity: ILike) => {
if (actor.id === note.userId) return `skip: cannot react to my note`;
+ await extractEmojis(activity.tag || [], actor.host).catch(() => null);
+
await create(actor, note, activity._misskey_reaction || activity.content || activity.name);
return `ok`;
};