mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
prevent touching thumbnail info when not needed
This commit is contained in:
parent
48fd703772
commit
c455b37b67
@ -926,6 +926,7 @@ 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"]:
|
||||||
content["info"]["thumbnail_url"] = await self._decrypt_uri(content["info"]["thumbnail_url"], client)
|
content["info"]["thumbnail_url"] = await self._decrypt_uri(content["info"]["thumbnail_url"], client)
|
||||||
return await self.forward_to_web(
|
return await self.forward_to_web(
|
||||||
request, data=json.dumps(content), token=client.access_token
|
request, data=json.dumps(content), token=client.access_token
|
||||||
|
Loading…
Reference in New Issue
Block a user