mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
[thumbnail] use posixpath to generate thumbnail-src
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import os
|
import posixpath
|
||||||
from seahub.utils import get_service_url
|
from seahub.utils import get_service_url
|
||||||
def get_thumbnail_src(repo_id, obj_id, size):
|
def get_thumbnail_src(repo_id, obj_id, size):
|
||||||
return os.path.join(get_service_url(), "thumbnail", repo_id,
|
return posixpath.join(get_service_url(), "thumbnail", repo_id,
|
||||||
obj_id, size, '')
|
obj_id, size)
|
||||||
|
Reference in New Issue
Block a user