api: Default client_gravatar to true.

Default `client_gravatar` to `true` for all endpoints passing the
parameter to avoid extra payload.

Fixes #11214.
This commit is contained in:
Gaurav Pandey
2021-08-05 23:18:43 +05:30
committed by Tim Abbott
parent 5459a92e4a
commit 067a32925d
9 changed files with 26 additions and 15 deletions

View File

@@ -950,7 +950,7 @@ def get_messages_backend(
use_first_unread_anchor_val: bool = REQ(
"use_first_unread_anchor", json_validator=check_bool, default=False
),
client_gravatar: bool = REQ(json_validator=check_bool, default=False),
client_gravatar: bool = REQ(json_validator=check_bool, default=True),
apply_markdown: bool = REQ(json_validator=check_bool, default=True),
) -> HttpResponse:
anchor = parse_anchor_value(anchor_val, use_first_unread_anchor_val)