Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other people's duplicate close votes aren't always displayed #2

Open
Aran-Fey opened this issue Oct 18, 2018 · 0 comments
Open

Other people's duplicate close votes aren't always displayed #2

Aran-Fey opened this issue Oct 18, 2018 · 0 comments

Comments

@Aran-Fey
Copy link
Owner

If someone has voted to close a question as duplicate but the corresponding "Possible duplicate of XYZ" comment hasn't been loaded yet, the question XYZ won't be listed as a suggested duplicate target.

The same thing happens if the user who cast the duplicate vote manually deletes the "Possible duplicate of XYZ" comment.

This issue is caused by the fact that the script relies on the comments to list existing duplicate votes. From insert_initial_suggestions:

const DUPE_MSG = 'Possible duplicate of ';
const suggested_dupe_comments = page.question.comments.filter(c => c.text.startsWith(DUPE_MSG));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant