web: fix profile picture
This commit is contained in:
parent
1ef133eb75
commit
7747ebb306
1 changed files with 2 additions and 5 deletions
|
@ -228,12 +228,9 @@ function get_qs(loc=location.href) {
|
|||
}
|
||||
|
||||
function get_picture(pk, profile) {
|
||||
if (!profile)
|
||||
if (!profile || !profile.picture)
|
||||
return IMG_NO_USER;
|
||||
if (profile.resolved_picture)
|
||||
return profile.resolved_picture
|
||||
profile.resolved_picture = html`${profile.picture}` || IMG_NO_USER;
|
||||
return profile.resolved_picture
|
||||
return html`${profile.picture}`;
|
||||
}
|
||||
|
||||
function debounce(f, interval) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue