From 8d987ec63e6888c839ad55938d45809869c517c6 Mon Sep 17 00:00:00 2001 From: Kim <1877318+kimsible@users.noreply.github.com> Date: Fri, 31 Jul 2020 11:29:15 +0200 Subject: 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 --- server/models/video/video-playlist.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/models/video/video-playlist.ts') 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 { return join(STATIC_PATHS.THUMBNAILS, this.Thumbnail.filename) } + getWatchUrl () { + return WEBSERVER.URL + '/videos/watch/playlist/' + this.uuid + } + setAsRefreshed () { this.changed('updatedAt', true) -- cgit v1.2.3