web: fix profile picture

This commit is contained in:
Thomas Mathews 2022-12-21 20:25:16 -08:00
parent 1ef133eb75
commit 7747ebb306

View file

@ -228,12 +228,9 @@ function get_qs(loc=location.href) {
} }
function get_picture(pk, profile) { function get_picture(pk, profile) {
if (!profile) if (!profile || !profile.picture)
return IMG_NO_USER; return IMG_NO_USER;
if (profile.resolved_picture) return html`${profile.picture}`;
return profile.resolved_picture
profile.resolved_picture = html`${profile.picture}` || IMG_NO_USER;
return profile.resolved_picture
} }
function debounce(f, interval) { function debounce(f, interval) {