diff --git a/upub/core/src/context.rs b/upub/core/src/context.rs index db5214b..e066bcc 100644 --- a/upub/core/src/context.rs +++ b/upub/core/src/context.rs @@ -160,6 +160,11 @@ impl Context { id.starts_with(self.base()) } + #[allow(unused)] + pub fn is_relay(&self, id: &str) -> bool { + self.0.relay.sources.contains(id) || self.0.relay.sinks.contains(id) + } + pub async fn find_internal(&self, id: &str) -> Result, DbErr> { if let Some(internal) = model::object::Entity::ap_to_internal(id, self.db()).await? { return Ok(Some(Internal::Object(internal))); @@ -181,11 +186,6 @@ impl Context { waker.wake(); } } - - #[allow(unused)] - pub fn is_relay(&self, id: &str) -> bool { - self.0.relay.sources.contains(id) || self.0.relay.sinks.contains(id) - } } pub enum Internal {