diff options
Diffstat (limited to 'server/lib/client-html.ts')
-rw-r--r-- | server/lib/client-html.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts index 058f29f03..18b16bee1 100644 --- a/server/lib/client-html.ts +++ b/server/lib/client-html.ts | |||
@@ -27,7 +27,7 @@ import { AccountModel } from '../models/account/account' | |||
27 | import { VideoModel } from '../models/video/video' | 27 | import { VideoModel } from '../models/video/video' |
28 | import { VideoChannelModel } from '../models/video/video-channel' | 28 | import { VideoChannelModel } from '../models/video/video-channel' |
29 | import { VideoPlaylistModel } from '../models/video/video-playlist' | 29 | import { VideoPlaylistModel } from '../models/video/video-playlist' |
30 | import { MAccountActor, MChannelActor, MVideo, MVideoPlaylist } from '../types/models' | 30 | import { MAccountHost, MChannelHost, MVideo, MVideoPlaylist } from '../types/models' |
31 | import { getActivityStreamDuration } from './activitypub/activity' | 31 | import { getActivityStreamDuration } from './activitypub/activity' |
32 | import { getBiggestActorImage } from './actor-image' | 32 | import { getBiggestActorImage } from './actor-image' |
33 | import { Hooks } from './plugins/hooks' | 33 | import { Hooks } from './plugins/hooks' |
@@ -260,7 +260,7 @@ class ClientHtml { | |||
260 | } | 260 | } |
261 | 261 | ||
262 | private static async getAccountOrChannelHTMLPage ( | 262 | private static async getAccountOrChannelHTMLPage ( |
263 | loader: () => Promise<MAccountActor | MChannelActor>, | 263 | loader: () => Promise<MAccountHost | MChannelHost>, |
264 | req: express.Request, | 264 | req: express.Request, |
265 | res: express.Response | 265 | res: express.Response |
266 | ) { | 266 | ) { |
@@ -280,7 +280,7 @@ class ClientHtml { | |||
280 | let customHtml = ClientHtml.addTitleTag(html, entity.getDisplayName()) | 280 | let customHtml = ClientHtml.addTitleTag(html, entity.getDisplayName()) |
281 | customHtml = ClientHtml.addDescriptionTag(customHtml, description) | 281 | customHtml = ClientHtml.addDescriptionTag(customHtml, description) |
282 | 282 | ||
283 | const url = entity.getLocalUrl() | 283 | const url = entity.getClientUrl() |
284 | const originUrl = entity.Actor.url | 284 | const originUrl = entity.Actor.url |
285 | const siteName = CONFIG.INSTANCE.NAME | 285 | const siteName = CONFIG.INSTANCE.NAME |
286 | const title = entity.getDisplayName() | 286 | const title = entity.getDisplayName() |