Comment pagination gets wonky when there are comments marked as spam

Description

Steps to reproduce

  1. Log in

  2. Post a work (but this mainly happens on news posts)

  3. Leave a comment on the work

  4. Log out

  5. Leave 25 more comments on the work (top level, not threaded)

  6. Log in as the work creator

  7. Go to the comment section with all the spam

  8. Mark all but the first and last comments as spam

What happens

There are still two pages of comments, but each page only displays one comment.

What should happen

There should be one page with two comments, because the spam comments should not count toward pagination.

Note: a comment can be marked as spam, but have non-spam replies that we should show.

Assignee

Unassigned

Reporter

Sarken

Roadmap

Comments

Priority

High

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9