http://i.imgur.com/1Wn6TRb.png
Bug overview description.
The popular by x post pages return deleted posts.
What part(s) of the site page(s) are affected?
https://e621.net/post/popular_by_day
https://e621.net/post/popular_by_week
https://e621.net/post/popular_by_month (haven't verified it, but the code should be more/less uniform between pages since I last touched it)
What is the expected behavior?
Ideally, to not see them.
What actual behavior is given instead?
You see them.
Can you reproduce the bug every time?
Yes
What steps did you take to replicate this bug?
Visit page. Happen to have highly rated post within the last day/week/month that was deleted (not sure if favorites or votes).
Updated by KiraNoot