mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 04:43:58 +00:00
python: Skip unnecessary decode before BeautifulSoup parsing.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
86e8d81c7f
commit
7c4f68d9cf
@@ -635,7 +635,7 @@ def to_dict_cache_key_id(message_id: int) -> str:
|
||||
def to_dict_cache_key(message: 'Message', realm_id: Optional[int]=None) -> str:
|
||||
return to_dict_cache_key_id(message.id)
|
||||
|
||||
def open_graph_description_cache_key(content: Any, request: HttpRequest) -> str:
|
||||
def open_graph_description_cache_key(content: bytes, request: HttpRequest) -> str:
|
||||
return 'open_graph_description_path:{}'.format(make_safe_digest(request.META['PATH_INFO']))
|
||||
|
||||
def flush_message(sender: Any, **kwargs: Any) -> None:
|
||||
|
||||
Reference in New Issue
Block a user