fix(backend-github): make non-Large Media previews work with Git Gateway+Github (#2151)
This commit is contained in:
parent
f4b6e8dc15
commit
63582dcbc7
@ -315,6 +315,9 @@ export default class GitGateway {
|
|||||||
if (client.enabled && client.matchPath(path)) {
|
if (client.enabled && client.matchPath(path)) {
|
||||||
return client.getDownloadURL(largeMediaDisplayURL);
|
return client.getDownloadURL(largeMediaDisplayURL);
|
||||||
}
|
}
|
||||||
|
if (typeof original === 'string') {
|
||||||
|
return original;
|
||||||
|
}
|
||||||
if (this.backend.getMediaDisplayURL) {
|
if (this.backend.getMediaDisplayURL) {
|
||||||
return this.backend.getMediaDisplayURL(original);
|
return this.backend.getMediaDisplayURL(original);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user