From ae6885187b0aa881164151ab97bd4887c83b775a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 4 Oct 2023 23:07:06 +0200 Subject: fix import path of folders --- server/src/import.rs | 1 + server/src/routes/ui/admin/log.rs | 5 +++++ server/src/routes/ui/admin/user.rs | 5 +++++ 3 files changed, 11 insertions(+) (limited to 'server/src') diff --git a/server/src/import.rs b/server/src/import.rs index ad1d5e9..4019958 100644 --- a/server/src/import.rs +++ b/server/src/import.rs @@ -73,6 +73,7 @@ pub async fn import_path( .into_iter() .map(|p| import_path(p.clone(), db, fed, node_path.clone()).map_err(|e| (p, e))) .collect(); + node_path.pop(); // we will set the dirs path later and need it to not be included let mut children_ids = Vec::new(); let mut errs = 0; diff --git a/server/src/routes/ui/admin/log.rs b/server/src/routes/ui/admin/log.rs index fb09091..de91acd 100644 --- a/server/src/routes/ui/admin/log.rs +++ b/server/src/routes/ui/admin/log.rs @@ -1,3 +1,8 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ use crate::{ routes::ui::{ account::session::AdminSession, diff --git a/server/src/routes/ui/admin/user.rs b/server/src/routes/ui/admin/user.rs index 42bcfa7..f991e99 100644 --- a/server/src/routes/ui/admin/user.rs +++ b/server/src/routes/ui/admin/user.rs @@ -1,3 +1,8 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2023 metamuffin +*/ use crate::{ database::Database, routes::ui::{ -- cgit v1.2.3-70-g09d2