Commit Graph

33 Commits (b69524b498983da636b3a31f5acb74fbb1f13ab4)

Author SHA1 Message Date
eiknat b69524b498
routes.api: fix get_captcha endpoint (#1135) 4 years ago
nutomic bd0e69b2bb Various things refactored (#95)
Remove unused derive macros

lemmy_rate_limit doesnt depend on lemmy_api_structs anymore

Dont use "pub extern crate"

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/95
4 years ago
Felix Ableitner 353e2e027a Move api structs and rate limit into separate workspaces 4 years ago
Dessalines 2d5a50e80f
Fixing broken websocket sends. Removing WebSocketInfo (#1098) 4 years ago
Dessalines 2080534744
Switch front end to use lemmy-js-client. Fixes #1090 (#1097)
* Switch front end to use lemmy-js-client. Fixes #1090

* Adding an HTTP client. Cleaning up Websocket client.
4 years ago
nutomic 14f2d190e5 Implement context (#86)
Implement context

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/86
4 years ago
Dessalines 8daeba450c
Removing unnecessary oper struct. Fixes #660 (#1077) 4 years ago
Dessalines 49bd28e2d4
Adding visual captchas for register and login. (#1027)
* Adding visual captchas for register and login.

* Adding audio wav file for Captcha using espeak.

* Lots of captcha fixes.

- Removed login captchas.
- Added settings to disable captchas, and change difficulty.
- Captchas can only be checked / used once, front end gives a new one on
  failure.
- Added front end button for regenerating captcha.
- Added a disabled / pause button audio playing.

* Some more fixes.
4 years ago
Dessalines 2eac037408 Adding post delete, remove, lock, and sticky. 4 years ago
Dessalines fd96dfdb5e Added comment delete, remove, read. 4 years ago
Dessalines 9bc6698f58 Added community delete and remove. 4 years ago
Dessalines a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 4 years ago
Dessalines 0a28ffb9c4 Private message delete and read extracted. 4 years ago
Riley a074564458
Federation async (#848)
* Asyncify more

* I guess these changed

* Clean PR a bit

* Convert more away from failure error

* config changes for testing federation

* It was DNS

So actix-web's client relies on TRust DNS Resolver to figure out
where to send data, but TRust DNS Resolver seems to not play nice
with docker, which expressed itself as not resolving the name to
an IP address _the first time_ when making a request. The fix was
literally to make the request again (which I limited to 3 times
total, and not exceeding the request timeout in total)

* Only retry for connecterror

Since TRust DNS Resolver was causing ConnectError::Timeout,
this change limits the retry to only this error, returning
immediately for any other error

* Use http sig norm 0.4.0-alpha for actix-web 3.0 support

* Blocking function, retry http requests

* cargo +nightly fmt

* Only create one pictrs dir

* Don't yarn build

* cargo +nightly fmt
4 years ago
Felix 9e61c3be94 Rework imports 4 years ago
Dessalines 15f1920b25 Federated private messages. 4 years ago
Dessalines 809cc1049e Fixing closures. 4 years ago
Dessalines d98c936295 Adding web::blocks to routes. 4 years ago
asonix d11af012fc post -> register 4 years ago
asonix 904ebf34a5 Guard CreateCommunity, represent impossible error with Infallible 4 years ago
asonix db4454b52b Add websockets into the api scope 4 years ago
asonix 217efdd706 Allow rustfmt on api config 4 years ago
asonix ac43b86b60 Change RateLimit to act as a middleware 4 years ago
Dessalines f300c67a4d Adding websocket notification system.
- HTTP and APUB clients can now send live updating messages to websocket
  clients
- Rate limiting now affects both HTTP and websockets
- Rate limiting / Websocket logic is now moved into the API Perform
  functions.
- TODO This broke getting current online users, but that will have to
  wait for the perform trait to be made async.
- Fixes #446
4 years ago
Dessalines bb287cbd07 Adding an admin settings page.
- Fixes #620
- Adding a UserListing component. Fixes #627
4 years ago
Dessalines 96a7e99e57 Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends. 4 years ago
Felix 2f21071606 api fixes 4 years ago
Felix cde4a8a977 rewrite api endpoint urls 4 years ago
Felix 643189160e fix typo 4 years ago
Felix 2c55292544 fix formatting 4 years ago
Felix f1035dacc2 working! 4 years ago
Felix 19afdf993e try to simplify code with higher order functions 4 years ago
Felix 1e60e1e351 Implement HTTP API using generics (fixes #380) 4 years ago