dideler/brocku-reddit-for-chrome — Issue #1: Notification pops up for old submissions
Author: dideler
Created: 2012-02-06 00:05:11+00:00
State: open

Steps to reproduce the problem:
1. Have the notification option for the extension enabled.
2. Remove a submission from the front page that the extension is already aware of (via deletion or downvotes).
3. When you refresh or the extension auto-refreshes, it will send a notification saying a new submission was made.

Expected:
No notification because no new submission was made.

Actual:
The second top post is seen as a new submission because it now appears at the top of the front page, and the submission that the extension has stored as the top one is no longer the top one, so it assumes the new top one is a new submission.

Fix:
Instead of just looking at the top stored link, go through the list of all stored links to verify if the submission already exists in storage, rather than assuming it's a new submission.