Skip to content
Snippets Groups Projects
Commit fde8aea1 authored by kareem hamdy's avatar kareem hamdy Committed by Diego Mello
Browse files

[FIX] Giphy not showing (#810)

parent a891ee14
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment