diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-26 10:36:24 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-01-09 11:15:15 +0100 |
commit | cef534ed53e4518fe0acf581bfe880788d42fc36 (patch) | |
tree | 115b51ea5136849a2336d44915c7780649f25dc2 /server/models/video/video-comment.ts | |
parent | 1de1d05f4c61fe059fa5e24e79c92582f0e7e4b3 (diff) | |
download | PeerTube-cef534ed53e4518fe0acf581bfe880788d42fc36.tar.gz PeerTube-cef534ed53e4518fe0acf581bfe880788d42fc36.tar.zst PeerTube-cef534ed53e4518fe0acf581bfe880788d42fc36.zip |
Add user notification base code
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index dd6d08139..d8fc2a564 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -448,6 +448,10 @@ export class VideoCommentModel extends Model<VideoCommentModel> { | |||
448 | } | 448 | } |
449 | } | 449 | } |
450 | 450 | ||
451 | getCommentStaticPath () { | ||
452 | return this.Video.getWatchStaticPath() + ';threadId=' + this.getThreadId() | ||
453 | } | ||
454 | |||
451 | getThreadId (): number { | 455 | getThreadId (): number { |
452 | return this.originCommentId || this.id | 456 | return this.originCommentId || this.id |
453 | } | 457 | } |