aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-03 00:01:51 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-03 00:01:51 +0200
commit9aa0cceedb52ddea5b08af7372f4c87f60e401d4 (patch)
tree557edb300af17925173b54ad1cb1b5655ccabd17 /client
parent8e33fcdfbd9df042c0cfd8e9a2084993313961c9 (diff)
downloadjellything-9aa0cceedb52ddea5b08af7372f4c87f60e401d4.tar
jellything-9aa0cceedb52ddea5b08af7372f4c87f60e401d4.tar.bz2
jellything-9aa0cceedb52ddea5b08af7372f4c87f60e401d4.tar.zst
not exposing private data
Diffstat (limited to 'client')
-rw-r--r--client/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/lib.rs b/client/src/lib.rs
index 4b111d1..39bd1fd 100644
--- a/client/src/lib.rs
+++ b/client/src/lib.rs
@@ -1,5 +1,5 @@
use anyhow::Result;
-use jellycommon::Node;
+use jellycommon::NodePublic;
use reqwest::{
header::{HeaderMap, HeaderValue},
Client,
@@ -69,7 +69,7 @@ impl Session {
format!("session={}", self.session_token)
}
- pub async fn node(&self, id: &str) -> Result<Node> {
+ pub async fn node(&self, id: &str) -> Result<NodePublic> {
Ok(self
.client
.get(format!("{}/n/{id}", self.instance.base()))