forked from alemi/upub
fix: fill addressing for outbound note activities
This commit is contained in:
parent
a8257deeeb
commit
f664cb1cbe
2 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue