popovers: Use user ID for computing medium avatar URLs.

This commit is contained in:
Tim Abbott 2021-11-02 10:47:15 -07:00 committed by Aman Agrawal
parent eb396b6190
commit d76b4744bf
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ export function show_user_profile(user) {
full_name: user.full_name, full_name: user.full_name,
email: people.get_visible_email(user), email: people.get_visible_email(user),
profile_data, profile_data,
user_avatar: "avatar/" + user.email + "/medium", user_avatar: "avatar/" + user.user_id + "/medium",
is_me: people.is_current_user(user.email), is_me: people.is_current_user(user.email),
date_joined: dateFormat.format(parseISO(user.date_joined)), date_joined: dateFormat.format(parseISO(user.date_joined)),
last_seen: buddy_data.user_last_seen_time_status(user.user_id), last_seen: buddy_data.user_last_seen_time_status(user.user_id),