From 18f712194c762e37f340d95f53f0557c22d25ba3 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 11 May 2024 22:54:41 +0200 Subject: [PATCH] chore: comment out so i dont get warns compiling --- src/routes/mastodon/accounts.rs | 68 ++++++++++++++++----------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/routes/mastodon/accounts.rs b/src/routes/mastodon/accounts.rs index f826dc7a..07ef9390 100644 --- a/src/routes/mastodon/accounts.rs +++ b/src/routes/mastodon/accounts.rs @@ -42,37 +42,37 @@ pub async fn view( } } -pub struct StatusesQuery { - /// All results returned will be lesser than this ID. In effect, sets an upper bound on results. - pub max_id: String, - /// All results returned will be greater than this ID. In effect, sets a lower bound on results. - pub since_id: String, - /// Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward. - pub min_id: String, - /// Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses. - pub limit: i32, - /// Filter out statuses without attachments. - pub only_media: bool, - /// Filter out statuses in reply to a different account. - pub exclude_replies: bool, - /// Filter out boosts from the response. - pub exclude_reblogs: bool, - /// Filter for pinned statuses only. Defaults to false, which includes all statuses. Pinned statuses do not receive special priority in the order of the returned results. - pub pinned: bool, - /// Filter for statuses using a specific hashtag. - pub tagged: String, -} - -pub async fn statuses( - State(ctx): State, - AuthIdentity(auth): AuthIdentity, - Path(id): Path, - Query(_query): Query, -) -> Result>, StatusCode> { - let uid = ctx.uid(id); - model::addressing::Entity::find_addressed(auth.my_id()) - .filter(model::activity::Column::Actor.eq(uid)) - .filter(auth.filter_condition()); - - todo!() -} +// pub struct StatusesQuery { +// /// All results returned will be lesser than this ID. In effect, sets an upper bound on results. +// pub max_id: String, +// /// All results returned will be greater than this ID. In effect, sets a lower bound on results. +// pub since_id: String, +// /// Returns results immediately newer than this ID. In effect, sets a cursor at this ID and paginates forward. +// pub min_id: String, +// /// Maximum number of results to return. Defaults to 20 statuses. Max 40 statuses. +// pub limit: i32, +// /// Filter out statuses without attachments. +// pub only_media: bool, +// /// Filter out statuses in reply to a different account. +// pub exclude_replies: bool, +// /// Filter out boosts from the response. +// pub exclude_reblogs: bool, +// /// Filter for pinned statuses only. Defaults to false, which includes all statuses. Pinned statuses do not receive special priority in the order of the returned results. +// pub pinned: bool, +// /// Filter for statuses using a specific hashtag. +// pub tagged: String, +// } +// +// pub async fn statuses( +// State(ctx): State, +// AuthIdentity(auth): AuthIdentity, +// Path(id): Path, +// Query(_query): Query, +// ) -> Result>, StatusCode> { +// let uid = ctx.uid(id); +// model::addressing::Entity::find_addressed(auth.my_id()) +// .filter(model::activity::Column::Actor.eq(uid)) +// .filter(auth.filter_condition()); +// +// todo!() +// }