Commit Graph

19 Commits (c72acfd28238f92aeb944e81992db153670838f5)

Author SHA1 Message Date
Felix Ableitner c9338027f2 Migrate user and group to new activitystreams library 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
Dessalines 4c1cb5999c Fixing some scripts for the federation-test 4 years ago
Dessalines f40f74b20d Adding additional 3-instance integration test for community announce. 4 years ago
Dessalines 22abbebd41 Lots of additions to federation.
- Added a shared inbox.
- Added federated comments, comment updates, and tests.
- Abstracted ap object sends into a common trait.
4 years ago
Dessalines df9135f410 Removing run-tests TODO. 4 years ago
Felix c3ac1649f2 Implement integration test for federation 4 years ago
Felix 509005fa0c Rename federation-test to federation, puller.rs to fetcher.rs 4 years ago
Felix Ableitner c16458b728 Avoid using database views in federation code 5 years ago
Felix 0d369e6019 Get image uploads working for federation-test 5 years ago
Felix Ableitner 390b204272 Rewrite federation settings 5 years ago
Felix Ableitner 8ebcc7ac02 Implemented basics for post federation, plus a bunch of other stuff 5 years ago
Felix Ableitner b01f4f75d6 WIP: federate posts between instances 5 years ago
Felix 27c07f1f84 Federate follower count, use string id for community 5 years ago
Felix 1f29e91796 Various minor federation improvements 5 years ago
Felix b854d8f3a0 Some federation improvements 5 years ago
Dessalines d932acad16 Merge branch 'federation' into dev_1 5 years ago
Felix 35489a706b Faster Docker build directly on host 5 years ago
Felix Ableitner 581f36d6ef Implementing very basic federation including test setup 5 years ago