Commit Graph

24 Commits (fd96dfdb5e1f3459fa9400fe464235031663af07)

Author SHA1 Message Date
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 5 years ago
Felix 643189160e fix typo 5 years ago
Felix 2c55292544 fix formatting 5 years ago
Felix f1035dacc2 working! 5 years ago
Felix 19afdf993e try to simplify code with higher order functions 5 years ago
Felix 1e60e1e351 Implement HTTP API using generics (fixes #380) 5 years ago