Commit Graph

57 Commits (debbd316c271f8867917a9eb8c4caa5c26093d66)

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
Felix Ableitner 3999e0485e migrate tombstone 4 years ago
Felix Ableitner 1aa30d855e address review comments 4 years ago
Felix Ableitner f3aba6da92 fix comment notifications 4 years ago
Felix Ableitner c34cc46c2d get it working (mostly) 4 years ago
Felix Ableitner 8f9bd1fef7 get some more things working 4 years ago
Felix ce0a37cdf1 get it working (mostly) 4 years ago
Felix cac7011d53 move logic to sharedinbox 4 years ago
Felix 5753c4feaa Let community announce posts 4 years ago
Dessalines a9af247f1e Merge branch 'federated_embeds' into federation 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 f88180650d Adding federated embeds via the preview field. 4 years ago
Dessalines 020b9b8cdd Post thumbnail and user icons federating. 4 years ago
Dessalines 940dc73f28 Federated mentions. Fixes #681 (#717)
* Federated mentions. Fixes #681

* Changing some todos, adding comments.
4 years ago
Felix 13ca47a3b4 Use ActorType for sign/verify, instead of passing raw privatekey/actor_id 4 years ago
Felix 11acc7225e Add helper function for Activity::create() 4 years ago
Felix 7485f1a5b4 Federate nsfw/locked info for posts 4 years ago
Dessalines fab22e3d8a Add federated comment and post undo like. 4 years ago
Dessalines dfc9637230 Merge branch 'federation' into federated_remove_actions 4 years ago
Dessalines 211ef795e9 Some additional notes, reorg. 4 years ago
Dessalines a09c818746 Adding federated mod remove actions. 4 years ago
Dessalines 5366797a4b Add undos for delete community, post, and comment. 4 years ago
Dessalines 2f1cd9976d Adding federated community, comment, and post deletes.
- Unit tests added too.
- No undeletes working yet.
4 years ago
Felix 770dcbdc49 wip: add former_type to tombstone 4 years ago
Felix c43f06124a Address comments, implement delete for posts and comments 4 years ago
Felix 0c0c683986 Implement deleting communities 4 years ago
Dessalines 3b62f58dd2 Adding federated post and comment likes. 4 years ago
Dessalines 9721b77317 1/3rd done with post likes 4 years ago
Dessalines 70060c27b2 Adding activity table inserts. 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 8a25f0f816 Use an associated type instead of Generic. 4 years ago
Dessalines d846740839 Some more cleanup. 4 years ago
Dessalines 66a2c4a2c3 Some fed fixes. 4 years ago
Felix c5ced6fa5e Added documentation for most functions 5 years ago
Felix 19c8461397 Implemented follow/accept 5 years ago
Felix fdaf0b3364 Get inbox working properly 5 years ago
Felix fac1cc7e1d Use summary field for post title 5 years ago
Felix fc951d9295 Added comments about how to federate additional post/user fields 5 years ago
Felix 509005fa0c Rename federation-test to federation, puller.rs to fetcher.rs 5 years ago
Felix 0b617377df Implement create activity 5 years ago
Felix Ableitner 6962b9c433 Use Url instead of String 5 years ago
Felix Ableitner 61c560c12c Get users federated 5 years ago
Felix Ableitner b7103a7e14 Store remote communities/posts in db, federate posts! 5 years ago
Felix Ableitner c16458b728 Avoid using database views in federation code 5 years ago
Felix Ableitner 96c3621a80 Share list of communities over apub, some refactoring 5 years ago
asonix cfe0d9c9c2 Upgraded to latest activitystreams 5 years ago
Felix Ableitner 5043a52b88 Serve post data in apub format, some cleanup 5 years ago