diff --git a/.travis.yml b/.travis.yml index 4385e0ab4..6323b7266 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ env: - PROJECT_HOST=${!PROJECT_HOST_VAR} - PROJECT_HOST=${PROJECT_HOST:-$PROJECT_HOST_STAGING} - STATIC_HOST_master=https://cdn2.scratch.mit.edu - - STATIC_HOST_STAGING=https://cdn.scratch.ly + - STATIC_HOST_STAGING=https://scratch.ly - STATIC_HOST_VAR=STATIC_HOST_$TRAVIS_BRANCH - STATIC_HOST=${!STATIC_HOST_VAR} - STATIC_HOST=${STATIC_HOST:-$STATIC_HOST_STAGING} diff --git a/src/components/grid/grid.jsx b/src/components/grid/grid.jsx index 73c67edc7..0bc8c9286 100644 --- a/src/components/grid/grid.jsx +++ b/src/components/grid/grid.jsx @@ -4,7 +4,6 @@ const React = require('react'); const Thumbnail = require('../thumbnail/thumbnail.jsx'); const FlexRow = require('../flex-row/flex-row.jsx'); -const thumbnailUrl = require('../../lib/user-thumbnail'); require('./grid.scss'); @@ -16,7 +15,7 @@ const Grid = props => ( if (props.itemType === 'projects') { return ( ( if (props.itemType === 'preview') { return ( ( - `${process.env.STATIC_HOST}/get_image/user/${userId || 'default'}_` + + `${process.env.STATIC_HOST}/get_image/user/${userId}_` + `${width ? width : 32}x${height ? height : (width ? width : 32)}.png` ); diff --git a/src/views/messages/message-rows/comment-message.jsx b/src/views/messages/message-rows/comment-message.jsx index 26c064413..f6df6da67 100644 --- a/src/views/messages/message-rows/comment-message.jsx +++ b/src/views/messages/message-rows/comment-message.jsx @@ -10,7 +10,6 @@ const React = require('react'); const Comment = require('../../../components/comment/comment.jsx'); const FlexRow = require('../../../components/flex-row/flex-row.jsx'); const SocialMessage = require('../../../components/social-message/social-message.jsx'); -const thumbnailUrl = require('../../../lib/user-thumbnail'); class CommentMessage extends React.Component { constructor (props) { @@ -165,7 +164,7 @@ class CommentMessage extends React.Component { {`${this.props.actorUsername}'s
diff --git a/src/views/preview/remix-credit.jsx b/src/views/preview/remix-credit.jsx index 15a83cca1..47ed764c7 100644 --- a/src/views/preview/remix-credit.jsx +++ b/src/views/preview/remix-credit.jsx @@ -3,7 +3,6 @@ const FormattedMessage = require('react-intl').FormattedMessage; const FlexRow = require('../../components/flex-row/flex-row.jsx'); const Avatar = require('../../components/avatar/avatar.jsx'); const projectShape = require('./projectshape.jsx').projectShape; -const thumbnailUrl = require('../../lib/user-thumbnail'); const RemixCredit = props => { const projectInfo = props.projectInfo; @@ -12,7 +11,7 @@ const RemixCredit = props => {