You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently also had problems with the comment system, and found some quirks/scratchattach didn't work for me.
Perhaps there was an update to the API (possibly at the time when using commentee-id to get username by id was removed) which caused the scratchattach library to go out of date in this respect. It might be something to be investigated
Hello! Only replies to top-level comments are shown on the Scratch website. Replies to replies are actually replies to the corresponding top-level comment in the API and aren't different in any way. Thus, you will have to use the parent id of the original comment when trying to reply. The correct syntax to reply to a comment is: user.reply_comment("comment content", parent_id="parent_id", commentee_id=""). Use the commentee_id to notify a user / ping a user about the message (put their user_id) (that is also how replies are handled in the API).
Hello! Only replies to top-level comments are shown on the Scratch website. Replies to replies are actually replies to the corresponding top-level comment in the API and aren't different in any way. Thus, you will have to use the parent id of the original comment when trying to reply. The correct syntax to reply to a comment is: user.reply_comment("comment content", parent_id="parent_id", commentee_id=""). Use the commentee_id to notify a user / ping a user about the message (put their user_id) (that is also how replies are handled in the API).
What you're saying I should do is use the comment ID to get a comment object, then use the parent comment method of that comment to find the parent comment, and finally reply to the parent comment.
However, I can't even get the comment object from the comment ID.
Hello! Only replies to top-level comments are shown on the Scratch
website. Replies to replies are actually replies to the corresponding
top-level comment in the API and aren't different in any way. Thus, you
will have to use the parent id of the original comment when trying to
reply. The correct syntax to reply to a comment is:
user.reply_comment("comment content", parent_id="parent_id",
commentee_id=""). Use the commentee_id to notify a user / ping a user about
the message (put their user_id) (that is also how replies are handled in
the API).
What you're saying I should do is use the comment ID to get a comment
object, then use the parent comment method of that comment to find the
parent comment, and finally reply to the parent comment.
However, I can't even get the comment object from the comment ID.
—
Reply to this email directly, view it on GitHub
<#336 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATCKMZX5V7BUACHV7UYRWCT2M42MHAVCNFSM6AAAAABV4G2MXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJYGE3DANZTHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Interesting. Sometimes, when viewing the comments page, recent comments don't show. Perhaps something needs to be added in this function to handle empty comment pages.
the get_comment_by_id function is kind of flawed because of the dynamic nature of comment pages. On e.g. griffpatch's profile, you can miss comments because so many comments are made per second that the push older comments further and further into the high page indexes. In theory, so many comments could be made/second that every time you increment the page # and view the next set of comments, you could be viewing the same comments again.
I think the problem is that when you post a comment on a page and reload it, it has a seemingly random chance to just not show up. This usually only happens for extremely recent comments.
My best guess would be that scratch is using a load balancer and multiple servers, and when one server receives the message it can update the database + its cache, but other servers will maybe have an outdated cache. But then it's very specific and I might be wrong
Activity
faretek1 commentedon Jan 26, 2025
I have recently also had problems with the comment system, and found some quirks/scratchattach didn't work for me.
Perhaps there was an update to the API (possibly at the time when using commentee-id to get username by id was removed) which caused the scratchattach library to go out of date in this respect. It might be something to be investigated
abhiramtx commentedon Jan 28, 2025
Hello! Only replies to top-level comments are shown on the Scratch website. Replies to replies are actually replies to the corresponding top-level comment in the API and aren't different in any way. Thus, you will have to use the parent id of the original comment when trying to reply. The correct syntax to reply to a comment is: user.reply_comment("comment content", parent_id="parent_id", commentee_id=""). Use the commentee_id to notify a user / ping a user about the message (put their user_id) (that is also how replies are handled in the API).
uukelele commentedon Jan 28, 2025
What you're saying I should do is use the comment ID to get a comment object, then use the parent comment method of that comment to find the parent comment, and finally reply to the parent comment.
However, I can't even get the comment object from the comment ID.
TheCommCraft commentedon Jan 28, 2025
uukelele commentedon Jan 28, 2025
Interesting. Sometimes, when viewing the comments page, recent comments don't show. Perhaps something needs to be added in this function to handle empty comment pages.
faretek1 commentedon Jan 24, 2026
the
get_comment_by_idfunction is kind of flawed because of the dynamic nature of comment pages. On e.g. griffpatch's profile, you can miss comments because so many comments are made per second that the push older comments further and further into the high page indexes. In theory, so many comments could be made/second that every time you increment the page # and view the next set of comments, you could be viewing the same comments again.This is why I did not finish #554
uukelele commentedon Jan 24, 2026
I think the problem is that when you post a comment on a page and reload it, it has a seemingly random chance to just not show up. This usually only happens for extremely recent comments.
My best guess would be that scratch is using a load balancer and multiple servers, and when one server receives the message it can update the database + its cache, but other servers will maybe have an outdated cache. But then it's very specific and I might be wrong