summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer/like.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/renderer/like.ts')
-rw-r--r--src/remote/activitypub/renderer/like.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/like.ts b/src/remote/activitypub/renderer/like.ts
index 33e1341a20..523cb4f1ad 100644
--- a/src/remote/activitypub/renderer/like.ts
+++ b/src/remote/activitypub/renderer/like.ts
@@ -1,7 +1,8 @@
import config from '../../../config';
import { ILocalUser } from '../../../models/user';
+import { INote } from '../../../models/note';
-export default (user: ILocalUser, note, reaction: string) => ({
+export default (user: ILocalUser, note: INote, reaction: string) => ({
type: 'Like',
actor: `${config.url}/users/${user._id}`,
object: note.uri ? note.uri : `${config.url}/notes/${note._id}`,