Aggregators like Hacker News and Reddit don‘t copy content as a whole, they just provide links. Providing a preview of the content, as Facebook does, might be considered either fair use or citation—but in neither case they’re copying and republishing the entire content.
Attribution does not magically remove copyright.