mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-14 13:32:07 +00:00
_make_dirs was moved to MediaRepository
This commit is contained in:
parent
9181e2f4c7
commit
a7001c311b
@ -370,7 +370,7 @@ class PreviewUrlResource(Resource):
|
|||||||
file_id = random_string(24)
|
file_id = random_string(24)
|
||||||
|
|
||||||
fname = self.filepaths.local_media_filepath(file_id)
|
fname = self.filepaths.local_media_filepath(file_id)
|
||||||
self._makedirs(fname)
|
self.media_repo._makedirs(fname)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(fname, "wb") as f:
|
with open(fname, "wb") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user