From d7e70384a360cda51fe23712331110a5c8b1124c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Jan 2018 11:19:25 +0100 Subject: Add mentions to comments --- shared/models/activitypub/objects/common-objects.ts | 3 ++- shared/models/activitypub/objects/video-comment-object.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'shared') 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 { } export interface ActivityTagObject { - type: 'Hashtag' + type: 'Hashtag' | 'Mention' + href?: string name: string } 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 @@ +import { ActivityTagObject } from './common-objects' + export interface VideoCommentObject { type: 'Note' id: string @@ -7,4 +9,5 @@ export interface VideoCommentObject { updated: string url: string attributedTo: string + tag: ActivityTagObject[] } -- cgit v1.2.3