diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-20 19:05:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-20 19:23:10 +0200 |
commit | 1ca9f7c3f7afac2af4c4c25b98426731f7e789c6 (patch) | |
tree | 27fe65c4ea5e9250d2523033d5c65b315bfca23d /server/models/video/video-comment.ts | |
parent | 0283eaac2a8e73006c66df3cf5bb9012e37450e5 (diff) | |
download | PeerTube-1ca9f7c3f7afac2af4c4c25b98426731f7e789c6.tar.gz PeerTube-1ca9f7c3f7afac2af4c4c25b98426731f7e789c6.tar.zst PeerTube-1ca9f7c3f7afac2af4c4c25b98426731f7e789c6.zip |
Type toFormattedJSON
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 c88dac1c1..84d71c553 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 | MCommentFormattable, | ||
20 | MCommentId, | 21 | MCommentId, |
21 | MCommentOwner, | 22 | MCommentOwner, |
22 | MCommentOwnerReplyVideoLight, | 23 | MCommentOwnerReplyVideoLight, |
@@ -475,7 +476,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> { | |||
475 | return uniq(result) | 476 | return uniq(result) |
476 | } | 477 | } |
477 | 478 | ||
478 | toFormattedJSON () { | 479 | toFormattedJSON (this: MCommentFormattable) { |
479 | return { | 480 | return { |
480 | id: this.id, | 481 | id: this.id, |
481 | url: this.url, | 482 | url: this.url, |