Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Comment box
- kenny2scratch
-
Scratcher
500+ posts
Comment box
I was on a user's profile today, and I saw this:

Why are there no comments displayed even though that button is there? Normally that button only shows up when you've gone down a long way through the comments section and there are more, but here there are no comments to scroll through and you have to click the button twice to show one comment! Why did this happen?
My browser / operating system: Windows NT 10.0, Chrome 58.0.3029.110, Flash 25.0 (release 0)
By the way, reloading and/or clearing my cache did nothing.

Why are there no comments displayed even though that button is there? Normally that button only shows up when you've gone down a long way through the comments section and there are more, but here there are no comments to scroll through and you have to click the button twice to show one comment! Why did this happen?
My browser / operating system: Windows NT 10.0, Chrome 58.0.3029.110, Flash 25.0 (release 0)
By the way, reloading and/or clearing my cache did nothing.
- jromagnoli
-
Scratcher
1000+ posts
Comment box
I was on a user's profile today, and I saw this:I think they deleted a lot of their profile comments.
Why are there no comments displayed even though that button is there? Normally that button only shows up when you've gone down a long way through the comments section and there are more, but here there are no comments to scroll through and you have to click the button twice to show one comment! Why did this happen?
My browser / operating system: Windows NT 10.0, Chrome 58.0.3029.110, Flash 25.0 (release 0)
By the way, reloading and/or clearing my cache did nothing.
- _nix
-
Scratcher
1000+ posts
Comment box
Well, the button only has one real criteria (criterium?) to be visible: there must be comments.
When comments are deleted, the comments are still there – but their contents are completely empty.
For proof, I posted three comments on my profile page and deleted them. Take a look at the HTML code behind how the page displays (even after reloading the page):

The comments are empty, but they still exist.
So, imagine that a user deletes all of the comments on their profile. That would make it so there's now a ton of empty comments – the old comments have had their content removed, but they still exist. So, since there's still a bunch of comments, Scratch still shows you the “load more” button!
It doesn't matter whether the comments are empty or not to Scratch; to it, the comments still exist, so you still need a “load more” button.
Hopefully that explains why things work the way they do
I think the most ideal way to deal with this would be to delete those comments when the “remove” button is pressed – that is, to stop them from existing at all. Then, since the comments wouldn't exist, Scratch wouldn't give you a “load more” button (or a bunch of pages of empty comments). (There probably is a reason why they aren't considered as “not existing”; I'm not sure what that is, though. I didn't program Scratch!
)
(Edit: I accidentally called the “delete” button the “remove” button in this post; sorry!
When comments are deleted, the comments are still there – but their contents are completely empty.
For proof, I posted three comments on my profile page and deleted them. Take a look at the HTML code behind how the page displays (even after reloading the page):

The comments are empty, but they still exist.
So, imagine that a user deletes all of the comments on their profile. That would make it so there's now a ton of empty comments – the old comments have had their content removed, but they still exist. So, since there's still a bunch of comments, Scratch still shows you the “load more” button!
It doesn't matter whether the comments are empty or not to Scratch; to it, the comments still exist, so you still need a “load more” button.
Hopefully that explains why things work the way they do

I think the most ideal way to deal with this would be to delete those comments when the “remove” button is pressed – that is, to stop them from existing at all. Then, since the comments wouldn't exist, Scratch wouldn't give you a “load more” button (or a bunch of pages of empty comments). (There probably is a reason why they aren't considered as “not existing”; I'm not sure what that is, though. I didn't program Scratch!
)(Edit: I accidentally called the “delete” button the “remove” button in this post; sorry!
Last edited by _nix (May 30, 2017 12:05:08)
- kenny2scratch
-
Scratcher
500+ posts
Comment box
-great explanation snipped-Thanks! That completely explains this happening. It's rather similar to how computers delete files… they simply remove the name. I'll close this tomorrow since this has been resolved.
- BarelySmooth
-
Scratcher
1000+ posts
Comment box
Its so badHi there! Welcome to the Scratch discussion forums,
This topic is a little old. Please do not necropost. Necroposting is when you post on an old topic without adding any useful information. If you are facing this bug, please create a new topic explaining the issue in detail. Accidental Necroposts happen and is okay if you are new to the forums.

- kenny2scratch
-
Scratcher
500+ posts
Comment box
Man, I completely didn't do this. Doing now.-great explanation snipped-Thanks! That completely explains this happening. It's rather similar to how computers delete files… they simply remove the name. I'll close this tomorrow since this has been resolved.
- Discussion Forums
- » Bugs and Glitches
-
» Comment box




