From e02a48d9da495f8b6dcf6bae53ab2190fdf6595d Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 24 Mar 2024 05:55:50 +0100 Subject: [PATCH] fix: wrong id type for addressing model --- src/activitypub/inbox.rs | 5 ++++- src/model/addressing.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/activitypub/inbox.rs b/src/activitypub/inbox.rs index 20982b31..5bd029ad 100644 --- a/src/activitypub/inbox.rs +++ b/src/activitypub/inbox.rs @@ -31,7 +31,10 @@ pub async fn get(State(ctx) : State, Query(page): Query) -> )) .ld_context() )), - Err(_e) => Err(StatusCode::INTERNAL_SERVER_ERROR), + Err(e) => { + tracing::error!("failed paginating global outbox: {e}"); + Err(StatusCode::INTERNAL_SERVER_ERROR) + }, } } else { Ok(JsonLD(serde_json::Value::new_object() diff --git a/src/model/addressing.rs b/src/model/addressing.rs index 8dea7d58..37601649 100644 --- a/src/model/addressing.rs +++ b/src/model/addressing.rs @@ -4,7 +4,7 @@ use sea_orm::entity::prelude::*; #[sea_orm(table_name = "addressing")] pub struct Model { #[sea_orm(primary_key)] - pub id: String, + pub id: i64, pub actor: String, pub activity: String, pub object: Option,