mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
home: Make emojiset an explicit parameter.
This is cleaner than accessing the UserProfile object directly (we don't really do that anywhere else).
This commit is contained in:
@@ -241,6 +241,7 @@ def home_real(request: HttpRequest) -> HttpResponse:
|
||||
csp_nonce = generate_random_token(48)
|
||||
response = render(request, 'zerver/app/index.html',
|
||||
context={'user_profile': user_profile,
|
||||
'emojiset': user_profile.emojiset,
|
||||
'page_params': JSONEncoderForHTML().encode(page_params),
|
||||
'csp_nonce': csp_nonce,
|
||||
'avatar_url': avatar_url(user_profile),
|
||||
|
||||
Reference in New Issue
Block a user