diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2020-04-14 00:42:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-14 00:42:59 +0900 |
| commit | 9b07c5af05a8be8114af860893d68614e4ee5ca2 (patch) | |
| tree | 3ca2587fe8e4d0bb845d2f42f443e21d224c4d6f /src/remote/activitypub/kernel | |
| parent | chore(client): :art: (diff) | |
| download | sharkey-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.ts | 4 |
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`; }; |