mirror of https://github.com/zulip/zulip.git
eb396b6190
It's always better to use the user ID than the email for fetching data about an object whose unique ID we have, which should be all of them. And it's also cleaner code to use the standard people.js method; tabbott checked that indeed all callers get their `user` objects from `people.js`. Since we restrict spectators from having access to avatars using email to avoid someone brute forcing a user's email, this removes a 401 response from the server in spectator view when trying to open user info popover. Additionally, this fixes the cached-fetching behavior documented in the comments we add about the way we construct URLs. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore |