diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-05 11:19:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-05 11:19:25 +0100 |
commit | d7e70384a360cda51fe23712331110a5c8b1124c (patch) | |
tree | 385609669c92936a5c66ae028c331fb4a9b5943e /shared/models/activitypub | |
parent | 2890b615f31ab7d519d8be66b49ff8712df90c51 (diff) | |
download | PeerTube-d7e70384a360cda51fe23712331110a5c8b1124c.tar.gz PeerTube-d7e70384a360cda51fe23712331110a5c8b1124c.tar.zst PeerTube-d7e70384a360cda51fe23712331110a5c8b1124c.zip |
Add mentions to comments
Diffstat (limited to 'shared/models/activitypub')
-rw-r--r-- | shared/models/activitypub/objects/common-objects.ts | 3 | ||||
-rw-r--r-- | shared/models/activitypub/objects/video-comment-object.ts | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts index ea5a503ac..aef728b82 100644 --- a/shared/models/activitypub/objects/common-objects.ts +++ b/shared/models/activitypub/objects/common-objects.ts | |||
@@ -4,7 +4,8 @@ export interface ActivityIdentifierObject { | |||
4 | } | 4 | } |
5 | 5 | ||
6 | export interface ActivityTagObject { | 6 | export interface ActivityTagObject { |
7 | type: 'Hashtag' | 7 | type: 'Hashtag' | 'Mention' |
8 | href?: string | ||
8 | name: string | 9 | name: string |
9 | } | 10 | } |
10 | 11 | ||
diff --git a/shared/models/activitypub/objects/video-comment-object.ts b/shared/models/activitypub/objects/video-comment-object.ts index 785fbbc0d..1c058b86c 100644 --- a/shared/models/activitypub/objects/video-comment-object.ts +++ b/shared/models/activitypub/objects/video-comment-object.ts | |||
@@ -1,3 +1,5 @@ | |||
1 | import { ActivityTagObject } from './common-objects' | ||
2 | |||
1 | export interface VideoCommentObject { | 3 | export interface VideoCommentObject { |
2 | type: 'Note' | 4 | type: 'Note' |
3 | id: string | 5 | id: string |
@@ -7,4 +9,5 @@ export interface VideoCommentObject { | |||
7 | updated: string | 9 | updated: string |
8 | url: string | 10 | url: string |
9 | attributedTo: string | 11 | attributedTo: string |
12 | tag: ActivityTagObject[] | ||
10 | } | 13 | } |