瀏覽代碼

Maybe fix removing profile pictures

Tulir Asokan 3 年之前
父節點
當前提交
8581c334d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mautrix_instagram/puppet.py

+ 1 - 1
mautrix_instagram/puppet.py

@@ -158,7 +158,7 @@ class Puppet(DBPuppet, BasePuppet):
         if pic_id != self.photo_id or not self.avatar_set:
             self.photo_id = pic_id
             if info.has_anonymous_profile_picture:
-                mxc = None
+                mxc = ""
             else:
                 async with source.client.raw_http_get(info.profile_pic_url) as resp:
                     content_type = resp.headers["Content-Type"]