fix: process updates for lemmy pages too

This commit is contained in:
əlemi 2024-06-07 17:11:34 +02:00
parent 8a93a7368e
commit 1814d7b187
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -261,7 +261,7 @@ pub async fn update(ctx: &crate::Context, activity: impl apb::Activity, tx: &Dat
.exec(tx) .exec(tx)
.await?; .await?;
}, },
apb::ObjectType::Note => { apb::ObjectType::Note | apb::ObjectType::Document(apb::DocumentType::Page) => {
let internal_oid = crate::model::object::Entity::ap_to_internal(&oid, tx) let internal_oid = crate::model::object::Entity::ap_to_internal(&oid, tx)
.await? .await?
.ok_or(ProcessorError::Incomplete)?; .ok_or(ProcessorError::Incomplete)?;