diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-22 23:57:03 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-22 23:57:03 +0100 |
commit | 75949cebdd61dd8f0d06f2e47081c460e2a442f0 (patch) | |
tree | ea0fc2ff003b7694ee06555d731bce1f08199136 /base/src | |
parent | c4682c231cbfa2bd4b44e14548800a64cc9cdbb8 (diff) | |
download | jellything-75949cebdd61dd8f0d06f2e47081c460e2a442f0.tar jellything-75949cebdd61dd8f0d06f2e47081c460e2a442f0.tar.bz2 jellything-75949cebdd61dd8f0d06f2e47081c460e2a442f0.tar.zst |
rework import system pt. 8: federated streams & change jhls
Diffstat (limited to 'base/src')
-rw-r--r-- | base/src/federation.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/src/federation.rs b/base/src/federation.rs index 509b87c..9cd04ae 100644 --- a/base/src/federation.rs +++ b/base/src/federation.rs @@ -3,9 +3,10 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ -use anyhow::anyhow; use crate::CONF; -use jellyclient::{Instance, LoginDetails, Session}; +use anyhow::anyhow; +use jellyclient::{Instance, Session}; +use jellycommon::user::CreateSessionParams; use std::{collections::HashMap, sync::Arc}; use tokio::sync::RwLock; @@ -46,7 +47,7 @@ impl Federation { let s = Arc::new( self.get_instance(host)? .to_owned() - .login(LoginDetails { + .login(CreateSessionParams { username: username.to_owned(), password: password.to_owned(), expire: None, |