aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorJulien Maulny <julien.maulny@protonmail.com>2019-11-15 19:05:08 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-12-04 09:36:45 +0100
commit69222afac8f8c41d90295b33f0695bbff352851e (patch)
tree63fe1faea94dd3bfc54e633631eecb275c969e54 /shared/models
parent69c7f7525ddf13b7ced787d8b72ac74b43665517 (diff)
downloadPeerTube-69222afac8f8c41d90295b33f0695bbff352851e.tar.gz
PeerTube-69222afac8f8c41d90295b33f0695bbff352851e.tar.zst
PeerTube-69222afac8f8c41d90295b33f0695bbff352851e.zip
Soft delete video comments instead of detroy
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/activitypub/objects/common-objects.ts11
-rw-r--r--shared/models/videos/video-comment.model.ts2
2 files changed, 13 insertions, 0 deletions
diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts
index 2a6529fed..df287d570 100644
--- a/shared/models/activitypub/objects/common-objects.ts
+++ b/shared/models/activitypub/objects/common-objects.ts
@@ -89,3 +89,14 @@ export interface ActivityPubAttributedTo {
89 type: 'Group' | 'Person' 89 type: 'Group' | 'Person'
90 id: string 90 id: string
91} 91}
92
93export interface ActivityTombstoneObject {
94 '@context'?: any
95 id: string
96 type: 'Tombstone'
97 name?: string
98 formerType?: string
99 published: string
100 updated: string
101 deleted: string
102}
diff --git a/shared/models/videos/video-comment.model.ts b/shared/models/videos/video-comment.model.ts
index 7ac4024fb..044962633 100644
--- a/shared/models/videos/video-comment.model.ts
+++ b/shared/models/videos/video-comment.model.ts
@@ -9,6 +9,8 @@ export interface VideoComment {
9 videoId: number 9 videoId: number
10 createdAt: Date | string 10 createdAt: Date | string
11 updatedAt: Date | string 11 updatedAt: Date | string
12 deletedAt: Date | string
13 isDeleted: boolean
12 totalReplies: number 14 totalReplies: number
13 account: Account 15 account: Account
14} 16}