vec![inbox],
context.pool(),
true,
+ true,
)
.await?;
}
follower_inboxes,
context.pool(),
true,
+ false,
)
.await?;
vec![inbox],
context.pool(),
true,
+ false,
)
.await?;
}
mentions,
context.pool(),
false, // Don't create a new DB row
+ false,
)
.await?;
Ok(())
inboxes: Vec<Url>,
pool: &DbPool,
insert_into_db: bool,
+ sensitive: bool,
) -> Result<(), LemmyError>
where
T: AsObject<Kind> + Extends<Kind> + Debug,
// might send the same ap_id
if insert_into_db {
let id = activity.id().context(location_info!())?;
- insert_activity(id, actor.user_id(), activity.clone(), true, pool).await?;
+ insert_activity(id, activity.clone(), true, sensitive, pool).await?;
}
for i in inboxes {