mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 18:14:49 +00:00
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:
@@ -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)
|
||||
);
|
||||
Reference in New Issue
Block a user