fix(backend-github): make non-Large Media previews work with Git Gateway+Github (#2151)

This commit is contained in:
Benaiah Mischenko 2019-03-08 12:26:27 -08:00 committed by Shawn Erquhart
parent f4b6e8dc15
commit 63582dcbc7

View File

@ -315,6 +315,9 @@ export default class GitGateway {
if (client.enabled && client.matchPath(path)) {
return client.getDownloadURL(largeMediaDisplayURL);
}
if (typeof original === 'string') {
return original;
}
if (this.backend.getMediaDisplayURL) {
return this.backend.getMediaDisplayURL(original);
}