converted user.data.photo -> user.photo

This commit is contained in:
Martina 2021-08-28 18:39:18 -07:00
parent cabcdc31ec
commit 6c1c66b09e
4 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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 {

View File

@ -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'