1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 15:26:19 +00:00

[thumbnail] Improve thumbnail

Correct thumbnail src url & change thumbnail root dir to 'seahub-data'
This commit is contained in:
lian
2015-02-12 11:04:41 +08:00
parent 739b32b02c
commit cbffdc7fb6
2 changed files with 6 additions and 2 deletions

View File

@@ -2,4 +2,4 @@ import posixpath
from seahub.utils import get_service_url
def get_thumbnail_src(repo_id, obj_id, size):
return posixpath.join(get_service_url(), "thumbnail", repo_id,
obj_id, size)
obj_id, size) + "/"