feat(labrinth): user blocking (#6837)

* feat(labrinth): user blocking

still wip, nothing is hooked up

* style(labrinth): cargo fmt

* refactor(labrinth): move block/unblock routes to public api

* feat(labrinth): block friend requests if blocked

* feat(labrinth): remove friend/request on block

* feat(labrinth): get blocked users endpoint
This commit is contained in:
Sychic
2026-07-27 19:41:57 +00:00
committed by GitHub
parent 224c28f29d
commit ebc7cac8b0
12 changed files with 358 additions and 0 deletions
@@ -0,0 +1,5 @@
CREATE TABLE blocked_users (
user_id bigint NOT NULL REFERENCES users (id) ON DELETE CASCADE,
blocked_id bigint NOT NULL REFERENCES users (id) ON DELETE CASCADE,
PRIMARY KEY (user_id, blocked_id)
);