Commit graph

22 commits

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