Fixing image previews
Этот коммит содержится в:
@@ -144,6 +144,11 @@ module.exports = React.createClass({
|
|||||||
if (this.props.imgCount > 0) {
|
if (this.props.imgCount > 0) {
|
||||||
preview_filename = this.props.filenames[this.state.imgId];
|
preview_filename = this.props.filenames[this.state.imgId];
|
||||||
} else {
|
} else {
|
||||||
|
// This is a temporary patch to fix issue with old files using absolute paths
|
||||||
|
if (info.path.indexOf("/api/v1/files/get") != -1) {
|
||||||
|
info.path = info.path.split("/api/v1/files/get")[1];
|
||||||
|
}
|
||||||
|
info.path = window.location.origin + "/api/v1/files/get" + info.path;
|
||||||
preview_filename = info['path'] + '_preview.jpg';
|
preview_filename = info['path'] + '_preview.jpg';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user