Commit graph

25 commits

Author SHA1 Message Date
Dessalines 2eac037408 Adding post delete, remove, lock, and sticky. 2020-07-20 23:46:36 -04:00
Dessalines fd96dfdb5e Added comment delete, remove, read. 2020-07-20 21:37:44 -04:00
Dessalines 9bc6698f58 Added community delete and remove. 2020-07-20 13:37:39 -04:00
Dessalines a67f46bec5 EditUserMention changed to MarkUserMentionAsRead. 2020-07-20 10:56:40 -04:00
Dessalines 0a28ffb9c4 Private message delete and read extracted. 2020-07-20 00:29:44 -04:00
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
2020-07-01 08:54:29 -04:00
Felix 9e61c3be94 Rework imports 2020-05-16 20:04:17 +02:00
Dessalines 15f1920b25 Federated private messages. 2020-05-05 22:06:24 -04:00
Dessalines 809cc1049e Fixing closures. 2020-04-21 16:48:54 -04:00
Dessalines d98c936295 Adding web::blocks to routes. 2020-04-21 16:40:03 -04:00
asonix d11af012fc post -> register 2020-04-20 13:05:07 -05:00
asonix 904ebf34a5 Guard CreateCommunity, represent impossible error with Infallible 2020-04-20 12:31:22 -05:00
asonix db4454b52b Add websockets into the api scope 2020-04-20 10:25:47 -05:00
asonix 217efdd706 Allow rustfmt on api config 2020-04-19 23:47:20 -05:00
asonix ac43b86b60 Change RateLimit to act as a middleware 2020-04-19 22:59:07 -05:00
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
2020-04-19 18:08:25 -04:00
Dessalines bb287cbd07 Adding an admin settings page.
- Fixes #620
- Adding a UserListing component. Fixes #627
2020-04-10 16:55:57 -04:00
Dessalines 96a7e99e57 Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends. 2020-02-02 12:45:41 -05:00
Felix 2f21071606 api fixes 2020-01-23 15:22:17 +01:00
Felix cde4a8a977 rewrite api endpoint urls 2020-01-18 14:26:05 +01:00
Felix 643189160e fix typo 2020-01-18 14:26:05 +01:00
Felix 2c55292544 fix formatting 2020-01-18 14:26:05 +01:00
Felix f1035dacc2 working! 2020-01-18 14:26:04 +01:00
Felix 19afdf993e try to simplify code with higher order functions 2020-01-18 14:23:44 +01:00
Felix 1e60e1e351 Implement HTTP API using generics (fixes #380) 2020-01-18 14:23:43 +01:00