From e4b92584dbb4a00131388bc80ab8a8b43e190991 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 29 Apr 2024 21:23:02 +0200 Subject: [PATCH] chore: imports, renamed future routes --- src/routes/activitypub/mod.rs | 4 ++-- src/routes/activitypub/object/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/activitypub/mod.rs b/src/routes/activitypub/mod.rs index 2b9ff0d1..43d3bb0b 100644 --- a/src/routes/activitypub/mod.rs +++ b/src/routes/activitypub/mod.rs @@ -64,8 +64,8 @@ impl ActivityPubRouter for Router { .route("/objects/:id/replies/page", get(ap::object::replies::page)) //.route("/objects/:id/likes", get(ap::object::likes::get)) //.route("/objects/:id/likes/page", get(ap::object::likes::page)) - //.route("/objects/:id/announces", get(ap::object::announces::get)) - //.route("/objects/:id/announces/page", get(ap::object::announces::page)) + //.route("/objects/:id/shares", get(ap::object::announces::get)) + //.route("/objects/:id/shares/page", get(ap::object::announces::page)) } } diff --git a/src/routes/activitypub/object/mod.rs b/src/routes/activitypub/object/mod.rs index d4a57cf0..2a8406f6 100644 --- a/src/routes/activitypub/object/mod.rs +++ b/src/routes/activitypub/object/mod.rs @@ -1,6 +1,6 @@ pub mod replies; -use apb::{BaseMut, CollectionMut, ObjectMut}; +use apb::ObjectMut; use axum::extract::{Path, Query, State}; use sea_orm::{ColumnTrait, ModelTrait, QueryFilter};