Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » DEVELOPER QUESTION
- i_eat_coffee
- Scratcher
1000+ posts
DEVELOPER QUESTION
https://github.com/scratchfoundation/scratch-www/blob/e8c1d071d5b2b6befc2dcc63f28b330956c5b080/src/views/preview/remix-credit.jsx#L8
let's say that a project is unshared,
is projectInfo.author null?
does it still have any type of data about this project or is it just a blank object?
let's say that a project is unshared,
is projectInfo.author null?
does it still have any type of data about this project or is it just a blank object?
(っ◔◡◔)っ ♥ Coffee | she/he/they | Teenager ♥
Full-stack web developer | HTML/CSS/JS, Node.js + EJS
- cosmosaura
- Scratch Team
1000+ posts
DEVELOPER QUESTION
I'll move this over to the Advanced Topics section for you - that's a better fit for this kind of topic
___________________
Scratch Team Member
Love hiking, cycling and travelling.
- Maximouse
- Scratcher
1000+ posts
DEVELOPER QUESTION
The info object is empty in that case because the API returns a 404. See https://github.com/scratchfoundation/scratch-www/blob/develop/src%2Fredux%2Fpreview.js#L285-L288
- Discussion Forums
- » Advanced Topics
- » DEVELOPER QUESTION