diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-21 14:31:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-21 15:23:04 +0200 |
commit | b5fecbf44192144d1ca27c23a0b53922de288c10 (patch) | |
tree | 03e4f1048273e6de60b8eb642fb52b2a4c68e60c /server/models/video/video-comment.ts | |
parent | f92e7f76d43cbad173be87f47105b9a02032318a (diff) | |
download | PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.gz PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.tar.zst PeerTube-b5fecbf44192144d1ca27c23a0b53922de288c10.zip |
Type toActivityPubObject functions
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index 84d71c553..2e4220434 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -17,6 +17,7 @@ import { FindOptions, Op, Order, ScopeOptions, Sequelize, Transaction } from 'se | |||
17 | import * as Bluebird from 'bluebird' | 17 | import * as Bluebird from 'bluebird' |
18 | import { | 18 | import { |
19 | MComment, | 19 | MComment, |
20 | MCommentAP, | ||
20 | MCommentFormattable, | 21 | MCommentFormattable, |
21 | MCommentId, | 22 | MCommentId, |
22 | MCommentOwner, | 23 | MCommentOwner, |
@@ -491,7 +492,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> { | |||
491 | } as VideoComment | 492 | } as VideoComment |
492 | } | 493 | } |
493 | 494 | ||
494 | toActivityPubObject (threadParentComments: MCommentOwner[]): VideoCommentObject { | 495 | toActivityPubObject (this: MCommentAP, threadParentComments: MCommentOwner[]): VideoCommentObject { |
495 | let inReplyTo: string | 496 | let inReplyTo: string |
496 | // New thread, so in AS we reply to the video | 497 | // New thread, so in AS we reply to the video |
497 | if (this.inReplyToCommentId === null) { | 498 | if (this.inReplyToCommentId === null) { |