presence: Add slim_presence flag.

This flag affects page_params and the
payload you get back from POSTs to this
url:

    users/me/presence

The flag does not yet affect the
presence events that get sent to a
client.
This commit is contained in:
Steve Howell
2020-02-02 16:29:05 +00:00
committed by Tim Abbott
parent 145c17d9d6
commit bf9144ff69
14 changed files with 103 additions and 59 deletions

View File

@@ -121,6 +121,7 @@ def home_real(request: HttpRequest) -> HttpResponse:
register_ret = do_events_register(user_profile, request.client,
apply_markdown=True, client_gravatar=True,
slim_presence=True,
notification_settings_null=True,
narrow=narrow)
user_has_messages = (register_ret['max_message_id'] != -1)