diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-23 15:27:01 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-23 15:27:01 +0900 |
| commit | 02bb99ac029e8fc12aec384717341f603052d7c0 (patch) | |
| tree | 1dcce6bdb5f329f58e8e6772c6717f49d658863b /src/remote/activitypub/renderer | |
| parent | サーバーのバージョンとクライアントのバージョンを分... (diff) | |
| download | misskey-02bb99ac029e8fc12aec384717341f603052d7c0.tar.gz misskey-02bb99ac029e8fc12aec384717341f603052d7c0.tar.bz2 misskey-02bb99ac029e8fc12aec384717341f603052d7c0.zip | |
他のMisskeyインスタンスにリアクション情報を伝えるように
Diffstat (limited to 'src/remote/activitypub/renderer')
| -rw-r--r-- | src/remote/activitypub/renderer/like.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/remote/activitypub/renderer/like.ts b/src/remote/activitypub/renderer/like.ts index 061a10ba84..33e1341a20 100644 --- a/src/remote/activitypub/renderer/like.ts +++ b/src/remote/activitypub/renderer/like.ts @@ -1,8 +1,9 @@ import config from '../../../config'; import { ILocalUser } from '../../../models/user'; -export default (user: ILocalUser, note) => ({ +export default (user: ILocalUser, note, reaction: string) => ({ type: 'Like', actor: `${config.url}/users/${user._id}`, - object: note.uri ? note.uri : `${config.url}/notes/${note._id}` + object: note.uri ? note.uri : `${config.url}/notes/${note._id}`, + _misskey_reaction: reaction }); |