mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-10-01 03:35:38 -04:00
chore: Style fixes
This commit is contained in:
parent
e62cfe068a
commit
3dd8051707
@ -915,7 +915,7 @@ class ProxyDaemon:
|
||||
return web.json_response(
|
||||
{
|
||||
"errcode": "M_FORBIDDEN",
|
||||
"error": "You do not have permission to send the event."
|
||||
"error": "You do not have permission to send the event.",
|
||||
},
|
||||
headers=CORS_HEADERS,
|
||||
status=403,
|
||||
@ -958,8 +958,9 @@ class ProxyDaemon:
|
||||
try:
|
||||
content["url"] = await self._decrypt_uri(content["url"], client)
|
||||
if (
|
||||
"info" in content and "thumbnail_url" in content["info"]
|
||||
and not content["info"]["thumbnail_url"] == None
|
||||
"info" in content
|
||||
and "thumbnail_url" in content["info"]
|
||||
and content["info"]["thumbnail_url"] is not None
|
||||
):
|
||||
content["info"]["thumbnail_url"] = await self._decrypt_uri(
|
||||
content["info"]["thumbnail_url"], client
|
||||
|
@ -501,6 +501,5 @@ if False:
|
||||
|
||||
return search_result
|
||||
|
||||
|
||||
else:
|
||||
INDEXING_ENABLED = False
|
||||
|
@ -63,7 +63,7 @@ async def init(data_dir, server_conf, send_queue, recv_queue):
|
||||
)
|
||||
|
||||
# 100 MB max POST size
|
||||
app = web.Application(client_max_size=1024 ** 2 * 100)
|
||||
app = web.Application(client_max_size=1024**2 * 100)
|
||||
|
||||
app.add_routes(
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user