fix: media not displaying with local backend (#324)
This commit is contained in:
committed by
GitHub
parent
a9e0770fd0
commit
9dba066ca4
@ -166,8 +166,12 @@ export default class ProxyBackend implements BackendClass {
|
||||
return deserializeMediaFile(file);
|
||||
}
|
||||
|
||||
getMediaDisplayURL(displayURL: DisplayURL) {
|
||||
return Promise.resolve(typeof displayURL === 'string' ? displayURL : displayURL.id);
|
||||
getMediaDisplayURL(displayURL: DisplayURL): Promise<string> {
|
||||
if (typeof displayURL === 'string') {
|
||||
return Promise.resolve(displayURL);
|
||||
}
|
||||
|
||||
return Promise.resolve(displayURL.path);
|
||||
}
|
||||
|
||||
async persistMedia(assetProxy: AssetProxy, options: PersistOptions) {
|
||||
|
Reference in New Issue
Block a user