Commit Graph

66 Commits (debbd316c271f8867917a9eb8c4caa5c26093d66)

Author SHA1 Message Date
Felix Ableitner d03c435563 Revert "Verify activitypub payload digests (#885)"
This reverts commit 916592944a.
4 years ago
Riley 916592944a
Verify activitypub payload digests (#885) 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 7d1c6e9a40 Switching back to isahc. 4 years ago
Dessalines dc94e58cbf Merge branch 'master' into federation_merge_from_master_2 4 years ago
Felix Ableitner 5a6f39dae4 Various build optimizations 4 years ago
Felix Ableitner 831680d27e Remove unneeded config dependencies 4 years ago
Felix Ableitner be84c7b977 Replace isahc with attohttpc to remove curl (fixes #798) 4 years ago
Felix Ableitner 0f1a8ec928 Merge branch 'master' into federation 4 years ago
Dessalines ed553aa9f0 Updating sponsor link. 4 years ago
Felix d1aca27126 Use activitystreams-ext 4 years ago
Dessalines f15c3b4e1e Merge branch 'yerba_rework-imports' into federation 4 years ago
Felix 9e61c3be94 Rework imports 4 years ago
Dessalines 940dc73f28 Federated mentions. Fixes #681 (#717)
* Federated mentions. Fixes #681

* Changing some todos, adding comments.
4 years ago
Dessalines 2f7a4ecdb2 Updating Cargo deps. Fixes #666 4 years ago
Felix 461114c143 update activitystreams lib 4 years ago
Dessalines 70060c27b2 Adding activity table inserts. 4 years ago
Dessalines 3ce0618362 Making a trait function for follow and accept. 4 years ago
Dessalines f0026065f5 Merge branch 'master' into federation_merge_from_master_1 4 years ago
asonix ac43b86b60 Change RateLimit to act as a middleware 4 years ago
Felix 8daf72278d Add http signature to outgoing apub requests 4 years ago
Felix Ableitner 6962b9c433 Use Url instead of String 4 years ago
Dessalines 9197b39ed6 Federation DB Changes.
- Creating an activity table.
- Adding some federation-related columns to the user_ and community
  tables.
- Generating the actor_id and keys in code, updating the tables.
4 years ago
Dessalines 31f835db86 Merge branch 'master' into federation 4 years ago
Dessalines 1571a4acd4 Changing markdown parser to comrak. Moving crate imports to lib.rs. 4 years ago
Dessalines 5ca466117d Merge branch 'master' into federation 4 years ago
Felix bafc2fc7ac Convert md to html for feeds, try to deduplicate code 4 years ago
Felix bf52bc22e4 Replace reqwest with chttp 4 years ago
Dessalines d2cf36bf02 Updating chttp to isahc. 4 years ago
Dessalines dc14719b08 Updating rust, rust deps, yarn deps. Fixes #605 4 years ago
asonix cfe0d9c9c2 Upgraded to latest activitystreams 4 years ago
Felix Ableitner 05735b31c0 Remove boilerplate code 4 years ago
Felix Ableitner 8ebcc7ac02 Implemented basics for post federation, plus a bunch of other stuff 4 years ago
Felix Ableitner b01f4f75d6 WIP: federate posts between instances 4 years ago
Felix Ableitner 063811cb60 Merge branch 'master' into federation 4 years ago
Felix Ableitner ef6df1339f Proper error logging for websocket 4 years ago
Felix 54172bd322 updated to activitystreams 0.4.0-alpha.3 4 years ago
Dessalines ac280782b2 Iframely and pictshare backend mostly done. 4 years ago
Felix 91ae9a9d49 Revert "pull in activitypub library"
This reverts commit a52a954eb4.
4 years ago
Felix 7cdf167e4b pull in activitypub library 4 years ago
Dessalines d932acad16 Merge branch 'federation' into dev_1 4 years ago
Dessalines 8036474dda Starting to work on user message scope. 4 years ago
Felix eaf548b5db Merge branch 'master' into federation 5 years ago
Felix 4361f48b98 Make various functions async 5 years ago
Felix d8c84e2541 Upgrade actix to 2.0 (fixes #392) 5 years ago
Dessalines a68fd4f2aa Updating cargo deps. 5 years ago
Felix Ableitner 581f36d6ef Implementing very basic federation including test setup 5 years ago
Felix Ableitner 4e952af00c Replace rust-crypto with sha2 crate (fixes #372) 5 years ago
Felix Ableitner 8589b6c0bd Implement SQL connection pool 5 years ago
Felix Ableitner cf3ae15ee9 Implement config (fixes #351) 5 years ago