aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-05 11:19:25 +0100
committerChocobozzz <me@florianbigard.com>2018-01-05 11:19:25 +0100
commitd7e70384a360cda51fe23712331110a5c8b1124c (patch)
tree385609669c92936a5c66ae028c331fb4a9b5943e /shared/models/activitypub
parent2890b615f31ab7d519d8be66b49ff8712df90c51 (diff)
downloadPeerTube-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.ts3
-rw-r--r--shared/models/activitypub/objects/video-comment-object.ts3
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
6export interface ActivityTagObject { 6export 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 @@
1import { ActivityTagObject } from './common-objects'
2
1export interface VideoCommentObject { 3export 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}