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

[repo] image thumbnail & preview: bug fix & improvements

This commit is contained in:
llj
2014-12-09 15:15:40 +08:00
parent c8cde80e7d
commit f98bc95b8c
3 changed files with 12 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
import os
from seahub.utils import get_site_scheme_and_netloc
from seahub.utils import get_service_url
def get_thumbnail_src(repo_id, obj_id, size):
return os.path.join(get_site_scheme_and_netloc(), "thumbnail", repo_id,
obj_id, size)
return os.path.join(get_service_url(), "thumbnail", repo_id,
obj_id, size, '')