Skip to content

Commit

Permalink
Revert ID change to 9 and 10 (#5459)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcgarry committed Apr 3, 2023
1 parent 2ac061f commit 7a7c97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/watchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function registerThing(element: HTMLElement) {
// Loading additional things ("load more comments", neverEndingReddit) may cause repeating posts; remove those
const id = thing.getFullname();
// Some posts may not have a have an id, e.g. those that are deleted or placeholders
if (id.length === 9 || id.length === 10) { // valid ids have 9 and 10 characters
if (id.length === 9) { // valid ids have 9 characters
const existing = dupeSet.get(id);
if (existing === element) return; // `registerThing` is being run on an already added thing
if (existing && document.contains(existing)) {
Expand Down

0 comments on commit 7a7c97a

Please sign in to comment.