+ match site {
+ Ok(s) => Ok(s.instance_id),
+ Err(e) => {
+ // Failed to fetch instance actor, its probably not a lemmy instance
+ debug!("Failed to dereference site for {}: {}", &instance_id, e);
+ let domain = instance_id.domain().expect("has domain");
+ Ok(
+ DbInstance::read_or_create(&mut context.pool(), domain.to_string())
+ .await?
+ .id,
+ )
+ }