-#[async_trait::async_trait]
-impl PerformApub for GetCommunity {
- type Response = GetCommunityResponse;
+#[tracing::instrument(skip(context))]
+pub async fn get_community(
+ data: Query<GetCommunity>,
+ context: Data<LemmyContext>,
+) -> Result<Json<GetCommunityResponse>, LemmyError> {
+ let local_user_view = local_user_view_from_jwt_opt(data.auth.as_ref(), &context).await;
+ let local_site = LocalSite::read(&mut context.pool()).await?;