activitypub-federation-rust/examples/local_federation
Kevin Kuriakose 7994df3706
Use OriginalUri for Axum ActivityData (#141)
* 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 8c787f5, router nesting is supported correctly in axum

* Fix docs typo (#143)

---------

Co-authored-by: Zami <szgie@proton.me>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2025-06-02 04:56:25 -04:00
..
activities Add back activity send queue as optional feature (#94) 2024-03-04 08:53:33 -05:00
actix_web Webfinger: don't discard consumer errors (#85) 2023-12-11 22:48:32 +01:00
axum Use OriginalUri for Axum ActivityData (#141) 2025-06-02 04:56:25 -04:00
objects Add back activity send queue as optional feature (#94) 2024-03-04 08:53:33 -05:00
error.rs Various improvements for usability, examples and docs 2023-02-19 21:26:01 +09:00
instance.rs Allow fetching from local domain in case it redirects to remote (#104) 2024-04-09 11:28:22 +02:00
main.rs Add more url validation (#134) 2025-01-23 05:11:49 -05:00
utils.rs live federation example 2023-03-08 22:16:43 +01:00