diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-28 11:36:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-28 11:38:08 +0200 |
commit | a1eda903a497857017495f37a1fd3593ba7ab23c (patch) | |
tree | a109f34af8b18c087caf6d5a7264267550f0416d /server/models/video | |
parent | 012580d98f489e599d44a9a2a0bdc892b9455a90 (diff) | |
download | PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.tar.gz PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.tar.zst PeerTube-a1eda903a497857017495f37a1fd3593ba7ab23c.zip |
Support '/w/' and '/w/p/' for watch page
And use them as default in client
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-playlist.ts | 2 | ||||
-rw-r--r-- | server/models/video/video.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts index c293287d3..98cea1b64 100644 --- a/server/models/video/video-playlist.ts +++ b/server/models/video/video-playlist.ts | |||
@@ -496,7 +496,7 @@ export class VideoPlaylistModel extends Model<Partial<AttributesOnly<VideoPlayli | |||
496 | } | 496 | } |
497 | 497 | ||
498 | getWatchUrl () { | 498 | getWatchUrl () { |
499 | return WEBSERVER.URL + '/videos/watch/playlist/' + this.uuid | 499 | return WEBSERVER.URL + '/w/p/' + this.uuid |
500 | } | 500 | } |
501 | 501 | ||
502 | getEmbedStaticPath () { | 502 | getEmbedStaticPath () { |
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index d4a258187..5af907533 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1920,7 +1920,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> { | |||
1920 | } | 1920 | } |
1921 | 1921 | ||
1922 | getWatchStaticPath () { | 1922 | getWatchStaticPath () { |
1923 | return '/videos/watch/' + this.uuid | 1923 | return '/w/' + this.uuid |
1924 | } | 1924 | } |
1925 | 1925 | ||
1926 | getEmbedStaticPath () { | 1926 | getEmbedStaticPath () { |