feat: k-ap public API, no ap_ports

This commit is contained in:
Gabriel
2026-05-17 22:31:23 +02:00
parent cb84043ba3
commit 630cffe33f
3 changed files with 3300 additions and 1 deletions

3271
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1 +1,28 @@
// placeholder — filled in Task 4
pub mod activities;
pub mod actor_handler;
pub mod actors;
pub mod content;
pub mod data;
pub mod error;
pub mod federation;
pub mod followers_handler;
pub mod inbox;
pub mod nodeinfo;
pub mod outbox;
pub mod repository;
pub mod service;
pub(crate) mod urls;
pub mod user;
pub mod webfinger;
pub use urls::AS_PUBLIC;
pub use activitypub_federation::kinds::object::NoteType;
pub use content::ApObjectHandler;
pub use data::FederationData;
pub use error::Error;
pub use federation::ApFederationConfig;
pub use repository::{
BlockedDomain, FederationRepository, Follower, FollowerStatus, FollowingStatus, RemoteActor,
};
pub use service::ActivityPubService;
pub use user::{ApProfileField, ApUser, ApUserRepository};

View File

@@ -32,6 +32,7 @@ const DELIVERY_INITIAL_DELAY_SECS: u64 = 1;
const HTTP_FETCH_TIMEOUT_SECS: u64 = 30;
const BATCH_FETCH_SLEEP_MS: u64 = 100;
#[allow(dead_code)]
fn content_to_html(text: &str) -> String {
let escaped = text
.replace('&', "&")