mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
Update share_links.py (#7691)
This commit is contained in:
@@ -950,10 +950,7 @@ class ShareLinkDirents(APIView):
|
|||||||
return api_error(status.HTTP_404_NOT_FOUND, error_msg)
|
return api_error(status.HTTP_404_NOT_FOUND, error_msg)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
current_commit = seafile_api.get_commit_list(repo_id, 0, 1)[0]
|
dirent_list = seafile_api.list_dir_by_path(repo_id, path)
|
||||||
dirent_list = seafile_api.list_dir_by_commit_and_path(repo_id,
|
|
||||||
current_commit.id,
|
|
||||||
path, -1, -1)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
error_msg = 'Internal Server Error'
|
error_msg = 'Internal Server Error'
|
||||||
|
Reference in New Issue
Block a user