From 8b75e2be84a6f0ef9bcf9875f3a80d8cdcd646d6 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 2 May 2024 15:12:36 +0200 Subject: [PATCH] fix: dispatch activities with @context --- src/server/dispatcher.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/dispatcher.rs b/src/server/dispatcher.rs index 972e0e7f..97360d9c 100644 --- a/src/server/dispatcher.rs +++ b/src/server/dispatcher.rs @@ -3,7 +3,7 @@ use sea_orm::{ColumnTrait, DatabaseConnection, EntityTrait, Order, QueryFilter, use tokio::{sync::broadcast, task::JoinHandle}; use apb::{ActivityMut, Node}; -use crate::{errors::UpubError, model, server::{fetcher::Fetcher, Context}}; +use crate::{errors::UpubError, model, routes::activitypub::jsonld::LD, server::{fetcher::Fetcher, Context}}; pub struct Dispatcher { waker: broadcast::Sender<()>, @@ -87,9 +87,9 @@ async fn worker(db: DatabaseConnection, domain: String, poll_interval: u64, mut | apb::ActivityType::Reject(_) ); if always_embed { - activity.ap().set_object(Node::object(object.ap())) + activity.ap().set_object(Node::object(object.ap())).ld_context() } else { - activity.ap() + activity.ap().ld_context() } }, None => {