From 23cae950479f1648348f54a934ea36c41266a503 Mon Sep 17 00:00:00 2001 From: lian Date: Thu, 17 Jan 2019 11:51:00 +0800 Subject: [PATCH] update starred file api (#2840) return repo_encrypted field --- seahub/api2/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seahub/api2/utils.py b/seahub/api2/utils.py index 597ca08988..297603cc18 100644 --- a/seahub/api2/utils.py +++ b/seahub/api2/utils.py @@ -62,7 +62,8 @@ def prepare_starred_files(files): 'file_name' : os.path.basename(f.path), 'mtime' : f.last_modified, 'mtime_relative': translate_seahub_time(f.last_modified), - 'dir' : f.is_dir + 'dir' : f.is_dir, + 'repo_encrpyted' : f.repo.encrypted } if not f.is_dir: try: