|
|
|
@ -71,7 +71,6 @@ impl BlockUser {
|
|
|
|
|
&context.settings().get_protocol_and_hostname(),
|
|
|
|
|
)?,
|
|
|
|
|
audience,
|
|
|
|
|
expires,
|
|
|
|
|
end_time: expires,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -150,7 +149,7 @@ impl ActivityHandler for BlockUser {
|
|
|
|
|
#[tracing::instrument(skip_all)]
|
|
|
|
|
async fn receive(self, context: &Data<LemmyContext>) -> LemmyResult<()> {
|
|
|
|
|
insert_received_activity(&self.id, context).await?;
|
|
|
|
|
let expires = self.expires.or(self.end_time).map(Into::into);
|
|
|
|
|
let expires = self.end_time.map(Into::into);
|
|
|
|
|
let mod_person = self.actor.dereference(context).await?;
|
|
|
|
|
let blocked_person = self.object.dereference(context).await?;
|
|
|
|
|
let target = self.target.dereference(context).await?;
|
|
|
|
|