import * as Bluebird from 'bluebird'
import {
MComment,
+ MCommentAP,
+ MCommentFormattable,
MCommentId,
MCommentOwner,
MCommentOwnerReplyVideoLight,
return uniq(result)
}
- toFormattedJSON () {
+ toFormattedJSON (this: MCommentFormattable) {
return {
id: this.id,
url: this.url,
} as VideoComment
}
- toActivityPubObject (threadParentComments: MCommentOwner[]): VideoCommentObject {
+ toActivityPubObject (this: MCommentAP, threadParentComments: MCommentOwner[]): VideoCommentObject {
let inReplyTo: string
// New thread, so in AS we reply to the video
if (this.inReplyToCommentId === null) {