@@ -90,54 +90,44 @@ const TWProjectMetaFetcherHOC = function (WrappedComponent) {
90
90
if ( this . props . projectId !== projectId ) {
91
91
return ;
92
92
}
93
- const title = data . name ;
93
+ const title = data . title ;
94
94
if ( title ) {
95
95
this . props . onSetProjectTitle ( title ) ;
96
96
}
97
97
const authorName = data . author . username ;
98
98
const authorThumbnail = `https://projects.penguinmod.com/api/v1/users/getpfp?username=${ data . author . username } ` ;
99
99
this . props . onSetAuthor ( authorName , authorThumbnail ) ;
100
- const instructions = data . desc || '' ;
100
+ const instructions = data . instructions || '' ;
101
101
const credits = data . notes || '' ;
102
102
if ( instructions || credits ) {
103
103
this . props . onSetDescription ( instructions , credits ) ;
104
104
}
105
105
if (
106
- typeof rawData . accepted === 'boolean'
107
- || typeof rawData . removedsoft === 'boolean'
108
- || String ( rawData . remix ) !== '0' // checks isRemix and remixId existing at the same time
109
- || typeof rawData . tooLarge === 'boolean'
110
- || authorName
106
+ String ( rawData . remix ) !== '0' // checks isRemix and remixId existing at the same time
111
107
) {
112
108
this . props . onSetExtraProjectInfo (
113
- rawData . public && ! rawData . softRejected ,
109
+ rawData . public ,
114
110
String ( rawData . remix ) !== '0' ,
115
111
String ( rawData . remix ) ,
116
112
false ,
117
113
authorName ,
118
114
new Date ( rawData . lastUpdate ) ,
119
115
rawData . lastUpdate !== rawData . date
120
116
) ;
121
- }
122
- if ( rawData . remix > 0 ) {
123
117
// this is a remix, find the original project
124
118
fetchProjectMeta ( rawData . remix )
125
119
. then ( remixProject => {
126
120
// If project ID changed, ignore the results.
127
121
if ( this . props . projectId !== projectId ) {
122
+ console . log ( "hi skibward" ) ;
128
123
return ;
129
124
}
130
- // If this project is hidden or not approved, ignore the results.
131
- if (
132
- typeof remixProject . name === 'string'
133
- || typeof remixProject . owner === 'string'
134
- ) {
135
- this . props . onSetRemixedProjectInfo (
136
- true , // loaded
137
- remixProject . name ,
138
- remixProject . owner
139
- ) ;
140
- }
125
+
126
+ this . props . onSetRemixedProjectInfo (
127
+ true , // loaded
128
+ remixProject . title ,
129
+ remixProject . author . username
130
+ ) ;
141
131
} )
142
132
. catch ( err => {
143
133
// this isnt fatal, just log
0 commit comments