fix: content negotiation for followers/following — resolve AP router conflict
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m28s
test / unit (pull_request) Failing after 11m39s
test / integration (pull_request) Failing after 17m5s

This commit is contained in:
2026-05-14 21:42:38 +02:00
parent fc3b4146a5
commit 908789e639
5 changed files with 185 additions and 21 deletions

View File

@@ -2,7 +2,6 @@ mod config;
mod factory;
use activitypub_base::{
followers_handler::{followers_handler, following_handler},
inbox::inbox_handler,
nodeinfo::{nodeinfo_handler, nodeinfo_well_known_handler},
outbox::outbox_handler,
@@ -57,14 +56,6 @@ async fn main() {
"/users/{username}/outbox",
axum::routing::get(outbox_handler),
)
.route(
"/users/{username}/followers",
axum::routing::get(followers_handler),
)
.route(
"/users/{username}/following",
axum::routing::get(following_handler),
)
.layer(infra.ap_service.federation_config().middleware());
let base = presentation::routes::router()