aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorKim <1877318+kimsible@users.noreply.github.com>2020-07-31 11:29:15 +0200
committerGitHub <noreply@github.com>2020-07-31 11:29:15 +0200
commit8d987ec63e6888c839ad55938d45809869c517c6 (patch)
treed6a82b9254c1c473094ee9371688661f2ae6eef3 /server/models
parent7b3909644dd7cb8be1caad537bb40605e5f059d4 (diff)
downloadPeerTube-8d987ec63e6888c839ad55938d45809869c517c6.tar.gz
PeerTube-8d987ec63e6888c839ad55938d45809869c517c6.tar.zst
PeerTube-8d987ec63e6888c839ad55938d45809869c517c6.zip
Add fcbk open-graph and twitter-card metas for accounts, video-channels, playlists urls (#2996)
* Add open-graph and twitter-card metas to accounts and video-channels * Add open-graph and twitter-card to video-playlists watch view * Refactor meta-tags creation server-side * Add client.ts tests for account, channel and playlist tags * Correct lint forbidden spaces * Correct test regression on client.ts Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-playlist.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video-playlist.ts b/server/models/video/video-playlist.ts
index 51fe04fc4..b38cf9c6a 100644
--- a/server/models/video/video-playlist.ts
+++ b/server/models/video/video-playlist.ts
@@ -490,6 +490,10 @@ export class VideoPlaylistModel extends Model<VideoPlaylistModel> {
490 return join(STATIC_PATHS.THUMBNAILS, this.Thumbnail.filename) 490 return join(STATIC_PATHS.THUMBNAILS, this.Thumbnail.filename)
491 } 491 }
492 492
493 getWatchUrl () {
494 return WEBSERVER.URL + '/videos/watch/playlist/' + this.uuid
495 }
496
493 setAsRefreshed () { 497 setAsRefreshed () {
494 this.changed('updatedAt', true) 498 this.changed('updatedAt', true)
495 499