mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2025-06-05 08:58:47 +00:00
* Use OriginalUri for axum ActivityData
When the inbox path is under a nested `Router`, the received request has a URI
with the common prefix stripped. This causes incoming signatures to be considered
invalid since the path is different (see https://github.com/LemmyNet/activitypub-federation-rust/issues/107#issuecomment-2767428107)
This commit uses `OriginalUri` for URI extraction instead, which will retrieve
the full URI regardless of router nesting
* Use router nesting for local_federation
With
|
||
---|---|---|
.. | ||
activities | ||
actix_web | ||
axum | ||
objects | ||
error.rs | ||
instance.rs | ||
main.rs | ||
utils.rs |