Back to problems

Design a post privacy/visibility system

System Design · Meta · Hard

Build the access-control and visibility layer for posts in a social media application. Each post can be assigned one of the following visibility modes: public: visible to everyone. friends: visible only to the author's direct connections. friends-of-friends: visible to direct connections and their direct connections; supporting this mode is optional. only me: visible only to the author. custom: visibility is determined by an allowlist, a denylist, and/or named groups. These…

Checking your access…