mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
upload: Rename attachment_vips_source, as it's not just for vips_source.
This commit is contained in:
committed by
Tim Abbott
parent
e37ee13577
commit
085d137871
@@ -103,7 +103,7 @@ class LocalUploadBackend(ZulipUploadBackend):
|
||||
filehandle.write(chunk)
|
||||
|
||||
@override
|
||||
def attachment_vips_source(self, path_id: str) -> StreamingSourceWithSize:
|
||||
def attachment_source(self, path_id: str) -> StreamingSourceWithSize:
|
||||
file_path = os.path.join(assert_is_not_none(settings.LOCAL_UPLOADS_DIR), "files", path_id)
|
||||
assert_is_local_storage_path("files", file_path)
|
||||
vips_source = pyvips.Source.new_from_file(file_path)
|
||||
|
||||
Reference in New Issue
Block a user