From b222090aee172769d5fa42b149194b821330d8e9 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 21 Mar 2024 20:11:00 +0100 Subject: [PATCH] fix: also for object --- src/activitypub/object.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/activitypub/object.rs b/src/activitypub/object.rs index 16460485..d0c86c8f 100644 --- a/src/activitypub/object.rs +++ b/src/activitypub/object.rs @@ -3,12 +3,12 @@ use sea_orm::EntityTrait; use crate::{activitystream::Base, model::object, server::Context}; -use super::JsonLD; +use super::{jsonld::LD, JsonLD}; pub async fn view(State(ctx) : State, Path(id): Path) -> Result, StatusCode> { match object::Entity::find_by_id(ctx.oid(id)).one(ctx.db()).await { - Ok(Some(object)) => Ok(JsonLD(object.underlying_json_object())), + Ok(Some(object)) => Ok(JsonLD(object.underlying_json_object().ld_context())), Ok(None) => Err(StatusCode::NOT_FOUND), Err(e) => { tracing::error!("error querying for object: {e}");