mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-19 06:44:20 -05:00
Add paths back in...
This commit is contained in:
parent
4d7e1dde70
commit
a675bd08bd
@ -100,7 +100,7 @@ class MediaFilePaths(object):
|
|||||||
|
|
||||||
def remote_media_thumbnail_dir(self, server_name, file_id):
|
def remote_media_thumbnail_dir(self, server_name, file_id):
|
||||||
return os.path.join(
|
return os.path.join(
|
||||||
"remote_thumbnail", server_name,
|
self.primary_base_path, "remote_thumbnail", server_name,
|
||||||
file_id[0:2], file_id[2:4], file_id[4:],
|
file_id[0:2], file_id[2:4], file_id[4:],
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -125,18 +125,18 @@ class MediaFilePaths(object):
|
|||||||
if NEW_FORMAT_ID_RE.match(media_id):
|
if NEW_FORMAT_ID_RE.match(media_id):
|
||||||
return [
|
return [
|
||||||
os.path.join(
|
os.path.join(
|
||||||
"url_cache",
|
self.primary_base_path, "url_cache",
|
||||||
media_id[:10],
|
media_id[:10],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
return [
|
return [
|
||||||
os.path.join(
|
os.path.join(
|
||||||
"url_cache",
|
self.primary_base_path, "url_cache",
|
||||||
media_id[0:2], media_id[2:4],
|
media_id[0:2], media_id[2:4],
|
||||||
),
|
),
|
||||||
os.path.join(
|
os.path.join(
|
||||||
"url_cache",
|
self.primary_base_path, "url_cache",
|
||||||
media_id[0:2],
|
media_id[0:2],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user