`quick-comment-edit` appears on other users' comments in issues
See original GitHub issuePlease ensure:
- The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.
Description
Open an issue, e.g.: https://github.com/facebook/jest/issues/6316 and scroll through the comments in the conversations tab. You will see edit buttons on all comments, including comments from other users. When you click on the edit button, you see an error message: Sorry, something went wrong
.
Console errors
A 403 Forbidden when the page attempts to retrieve the edit form for that comment:
XHR GET https://github.com/facebook/jest/issue_comments/.../edit_form?textarea_id=issuecomment-...-body&comment_context= [HTTP/2 403 Forbidden 321 ms]
Example URL
https://github.com/facebook/jest/issues/6316 (locked issue) https://github.com/facebook/jest/issues/11791 (regular issue)
Browser(s) used
Firefox
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Issues - GitHub
quick-comment-edit appears on other users ' comments in issues refined-github/refined-github#4712. Closed. Fix: edit-comments-faster appears ...
Read more >Unable to select users when mentioning in coments
Solved: Hi everyone, With my account, I have the following two problems: When entering a comment and trying to mention a user by...
Read more >Commenting on an issue - Amazon CodeCatalyst
Describes how to comment on an issue. ... In the comments you can tag other space members, other projects in the space, related...
Read more >TikTok Comments Not Showing: What To Do and Why It Matters
Though TikTok appears to have mostly resolved that bug for users, problems with the comments section are common on the app.
Read more >Modern Comments in Word - Microsoft Support
With this update, you no longer have to worry about your comments being seen by others before you're finished editing them. After you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There’s a variety of signals we can use to determine whether the current user can edit every comment, it’s just a matter of finding them in each supported page.
Example:
However I also see an element that’s missing from the Jest conversation:
but is available in this repo:
So maybe we should look for that in every comment:
js-previewable-comment-form previewable-comment-form write-selected
Even if this only works on some pages, it’s better than showing a broken element for now.
I see the
('[data-url$="variables%5BdeferredEditForm%5D=false"]')
on your comment just now too - but I should not be able to edit your comment right?Edit: Even my own comments seem to have that variable, and it is set to false