mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-08 14:18:08 -05:00
thumbnail_url can be None
This commit is contained in:
parent
ed7aa55ef0
commit
cd36ca68d5
@ -948,7 +948,10 @@ class ProxyDaemon:
|
||||
):
|
||||
try:
|
||||
content["url"] = await self._decrypt_uri(content["url"], client)
|
||||
if "info" in content and "thumbnail_url" in content["info"]:
|
||||
if (
|
||||
"info" in content and "thumbnail_url" in content["info"]
|
||||
and not content["info"]["thumbnail_url"] == None
|
||||
):
|
||||
content["info"]["thumbnail_url"] = await self._decrypt_uri(
|
||||
content["info"]["thumbnail_url"], client
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user