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