activitypub-federation-rust/src
Grafcube 99cdbb5d58
Multi webfinger response (#33)
* Add support for building webfinger for multiple URLs with type

Update `build_webfinger_response` to accept `Vec<(Url, Option<&str>)>`
where `Url` is the ActivityPub ID and `&str` is the optional type.

* Update docs for `build_webfinger_response`

* Update tests to use new `build_webfinger_response`

Tests and docs don't cover usage with some `kind` value.

* Run formatter with nightly

* Revert "Add support for building webfinger for multiple URLs with type"

This reverts commits until 3f70586e63.
This was a breaking change and should be made into a separate function.

* Add `build_webfinger_response_with_type`

* Construct links separately and update `build_webfinger_response`

- `build_webfinger_response` calls `build_webfinger_response_with_type`.
- Links are constructed in a separate variable.
- Update docs for `build_webfinger_response_with_type` to be clearer
about usage.
- TODO: Use `derive_builder` to simplify function.

* Extract properties into variable

* Remove `other` from docs
2023-04-04 21:56:34 +02:00
..
actix_web Add signature tests, update dependencies, remove Cargo.lock from git 2023-03-30 21:57:18 +02:00
axum Dont use apub in type names 2023-03-16 21:41:43 +01:00
fetch Multi webfinger response (#33) 2023-04-04 21:56:34 +02:00
protocol Changes to make Lemmy work with 0.4 (#29) 2023-03-16 02:11:48 +01:00
activity_queue.rs Add signature tests, update dependencies, remove Cargo.lock from git 2023-03-30 21:57:18 +02:00
config.rs Dont use apub in type names 2023-03-16 21:41:43 +01:00
error.rs move files 2023-03-06 16:19:43 +01:00
http_signatures.rs Add signature tests, update dependencies, remove Cargo.lock from git 2023-03-30 21:57:18 +02:00
lib.rs Dont use apub in type names 2023-03-16 21:41:43 +01:00
reqwest_shim.rs move files 2023-03-06 16:19:43 +01:00
traits.rs Dont use apub in type names 2023-03-16 21:41:43 +01:00