From f664cb1cbe546e938e939939e795be6d85f60637 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 8 Jun 2024 15:55:07 +0200 Subject: [PATCH] fix: fill addressing for outbound note activities --- upub/core/src/selector.rs | 2 +- upub/worker/src/outbound.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/upub/core/src/selector.rs b/upub/core/src/selector.rs index e0d4d1b6..b9d22a3f 100644 --- a/upub/core/src/selector.rs +++ b/upub/core/src/selector.rs @@ -1,5 +1,5 @@ use apb::{ActivityMut, ObjectMut}; -use sea_orm::{sea_query::{IntoColumnRef, IntoCondition}, ColumnTrait, Condition, ConnectionTrait, DbErr, EntityName, EntityTrait, FromQueryResult, Iden, Iterable, LoaderTrait, ModelTrait, Order, QueryFilter, QueryOrder, QueryResult, QuerySelect, RelationTrait, Select, SelectColumns}; +use sea_orm::{sea_query::IntoCondition, ColumnTrait, Condition, ConnectionTrait, DbErr, EntityName, EntityTrait, FromQueryResult, Iden, Iterable, LoaderTrait, ModelTrait, Order, QueryFilter, QueryOrder, QueryResult, QuerySelect, RelationTrait, Select, SelectColumns}; use crate::model; diff --git a/upub/worker/src/outbound.rs b/upub/worker/src/outbound.rs index 47d75461..438040ac 100644 --- a/upub/worker/src/outbound.rs +++ b/upub/worker/src/outbound.rs @@ -12,6 +12,10 @@ pub async fn process(ctx: Context, job: &model::job::Model) -> crate::JobResult< if matches!(t, apb::ObjectType::Note) { activity = apb::new() .set_activity_type(Some(apb::ActivityType::Create)) + .set_to(activity.to()) + .set_bto(activity.bto()) + .set_cc(activity.cc()) + .set_bcc(activity.bcc()) .set_object(apb::Node::object(activity)); t = apb::ObjectType::Activity(apb::ActivityType::Create); }