Add support for all kinds of files in both directions

This commit is contained in:
Tulir Asokan
2018-01-27 16:31:40 +02:00
parent 9c6fbb8bc5
commit a0bbf0338d
5 changed files with 189 additions and 46 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ class Puppet:
photo_id = f"{photo.volume_id}-{photo.local_id}"
if self.photo_id != photo_id:
file = source.download_file(photo)
uploaded = self.intent.media_upload(file)
uploaded = self.intent.upload_file(file)
self.intent.set_avatar(uploaded["content_uri"])
self.photo_id = photo_id
return True