Skip to content

Hide hidden threads from homepage cache #235

Description

@LegendBegins

Function findCategoriesWithForums in server/db/index.ts retrieves the latest post in a given subforum for homepage activity previews, even if that post was on a thread that was hidden.

-> e.g. I create thread titled "Starting the red giant of all flame wars, gif is pronounced jif"

--> A mod deletes my thread

-> My thread and the latest post still show up on the homepage

DB should really only fetch the latest thread where is_hidden is false. This requires some SQL modification that I'm too sleepy to validate today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions