mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-26 04:19:49 +03:00
converted user.data.photo -> user.photo
This commit is contained in:
parent
cabcdc31ec
commit
6c1c66b09e
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user