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:
@@ -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, '')
|
||||
|
Reference in New Issue
Block a user