]> Untitled Git - lemmy.git/commit
A few API v2 changes based on nutomic's suggestions.
authorDessalines <tyhou13@gmx.com>
Mon, 18 Jan 2021 21:57:31 +0000 (16:57 -0500)
committerDessalines <tyhou13@gmx.com>
Mon, 18 Jan 2021 21:57:31 +0000 (16:57 -0500)
commit1de8a4606a9d76007e5696bdad6a12956b1b5d54
tree885e51afefb20587b6e4907d2244df724fed91ab
parent672d4507b244b88de79fa832316f614c4e4dd4eb
A few API v2 changes based on nutomic's suggestions.

- Changed `edit_id` s to their type (comment_id)
- Moved websocket actions to their own file in structs and api.
- Got rid of UserViewDangerous, added UserSafeSettings.
  - GetSite now returns UserSafeSettings for `my_user`.
- Got rid of `admin` field in `Register`.
22 files changed:
api_tests/package.json
api_tests/src/shared.ts
api_tests/yarn.lock
lemmy_api/src/comment.rs
lemmy_api/src/community.rs
lemmy_api/src/lib.rs
lemmy_api/src/post.rs
lemmy_api/src/site.rs
lemmy_api/src/user.rs
lemmy_api/src/websocket.rs [new file with mode: 0644]
lemmy_db_queries/src/lib.rs
lemmy_db_queries/src/source/user.rs
lemmy_db_schema/src/source/user.rs
lemmy_db_views_actor/src/user_view.rs
lemmy_structs/src/comment.rs
lemmy_structs/src/community.rs
lemmy_structs/src/lib.rs
lemmy_structs/src/post.rs
lemmy_structs/src/site.rs
lemmy_structs/src/user.rs
lemmy_structs/src/websocket.rs [new file with mode: 0644]
src/routes/api.rs