mirror of
https://github.com/immich-app/immich.git
synced 2026-03-25 19:18:57 +03:00
feat: use request host as default SSR domain (#19485)
fix: hostname and domain confusion chore: e2e test
This commit is contained in:
@@ -174,7 +174,7 @@ export class SharedLinkService extends BaseService {
|
||||
return results;
|
||||
}
|
||||
|
||||
async getMetadataTags(auth: AuthDto): Promise<null | OpenGraphTags> {
|
||||
async getMetadataTags(auth: AuthDto, defaultDomain?: string): Promise<null | OpenGraphTags> {
|
||||
if (!auth.sharedLink || auth.sharedLink.password) {
|
||||
return null;
|
||||
}
|
||||
@@ -190,7 +190,7 @@ export class SharedLinkService extends BaseService {
|
||||
return {
|
||||
title: sharedLink.album ? sharedLink.album.albumName : 'Public Share',
|
||||
description: sharedLink.description || `${assetCount} shared photos & videos`,
|
||||
imageUrl: new URL(imagePath, getExternalDomain(config.server)).href,
|
||||
imageUrl: new URL(imagePath, getExternalDomain(config.server, defaultDomain)).href,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user