diff --git a/pages/_/profile[dep].js b/pages/_/profile[dep].js index 4d2be91d..92dde3b4 100644 --- a/pages/_/profile[dep].js +++ b/pages/_/profile[dep].js @@ -64,7 +64,7 @@ export default class ProfilePage extends React.Component { : "404"; const url = `https://slate.host/${title}`; const description = this.props.creator.body; - const image = this.props.creator.data.photo; + const image = this.props.creator.photo; if (Strings.isEmpty(image)) { image = DEFAULT_IMAGE; } diff --git a/scenes/SceneEditAccount.js b/scenes/SceneEditAccount.js index c5a38bd7..394f7f45 100644 --- a/scenes/SceneEditAccount.js +++ b/scenes/SceneEditAccount.js @@ -47,7 +47,7 @@ export default class SceneEditAccount extends React.Component { password: "", confirm: "", body: this.props.viewer.body, - photo: this.props.viewer.data.photo, + photo: this.props.viewer.photo, name: this.props.viewer.name, deleting: false, allow_filecoin_directory_listing: this.props.viewer.data.settings diff --git a/scenes/SceneProfile.js b/scenes/SceneProfile.js index 946c7173..327a7268 100644 --- a/scenes/SceneProfile.js +++ b/scenes/SceneProfile.js @@ -161,7 +161,7 @@ export default class SceneProfile extends React.Component { description = file.body ? file.body : `View ${title}, a file from ${name} on Slate`; image = Utilities.getImageUrlIfExists(file, Constants.linkPreviewSizeLimit); } else { - image = user.data.photo; + image = user.photo; if (user.body) { description = `${name}. ${user.body}`; } else { diff --git a/scripts/flattening-migration.js b/scripts/flattening-migration.js index 5359c191..aa5a29f7 100644 --- a/scripts/flattening-migration.js +++ b/scripts/flattening-migration.js @@ -267,8 +267,8 @@ runScript(); Users [ 'data.name', -> 'name' MIGRATED - 'data.body', -> 'body' - 'data.photo', -> 'photo' + 'data.body', -> 'body' MIGRATED + 'data.photo', -> 'photo' MIGRATED 'data.status', -> 'hidePrivacyAlert' 'data.tokens', -> 'apiToken' 'data.settings.settings_deals_auto_approve', -> 'settingsDealsAutoApprove' @@ -282,7 +282,7 @@ Users Slates [ 'data.name', -> 'name' MIGRATED - 'data.body', -> 'body' + 'data.body', -> 'body' MIGRATED ] @@ -293,7 +293,7 @@ Files 'data.type', -> 'type' 'data.blurhash', -> 'blurhash' 'data.source', -> 'source' - 'data.body', -> 'body' + 'data.body', -> 'body' MIGRATED 'data.author', -> 'author' 'data.coverImage', -> 'coverImage' 'data.unity', -> 'data.unity'