[FIX] Giphy not showing (#810)

This commit is contained in:
kareem hamdy 2019-04-17 21:27:14 +02:00 committed by Diego Mello
parent a891ee14ee
commit fde8aea173
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export default class extends Component {
render() {
const { modalVisible, isPressed } = this.state;
const { baseUrl, file, user } = this.props;
const img = `${ baseUrl }${ file.image_url }?rc_uid=${ user.id }&rc_token=${ user.token }`;
const img = file.image_url.includes('http') ? file.image_url : `${ baseUrl }${ file.image_url }?rc_uid=${ user.id }&rc_token=${ user.token }`;
if (!img) {
return null;