Fix subscribed_threads endpoint and reinstate test coverage.
fixup: Add “unread” thread list filter, and refactor the “flagged” filter.