diff --git a/apps/ssb.json b/apps/ssb.json index d3ce9e5c..f03eb167 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&6dwXL1RKL8t/RSV0UHBflkMnM8f8SV9VFvBZFqhW6LI=.sha256" + "previous": "&wA6sLaDxtYeFdVCCu8jyhPsGYtGZEjbWQHeGOn0Yifg=.sha256" } diff --git a/apps/ssb/tf-user.js b/apps/ssb/tf-user.js index 581fb705..6ed97528 100644 --- a/apps/ssb/tf-user.js +++ b/apps/ssb/tf-user.js @@ -19,6 +19,10 @@ class TfUserElement extends LitElement { } render() { + let image = html`?`; let name = this.users?.[this.id]?.name; name = name !== undefined @@ -26,21 +30,20 @@ class TfUserElement extends LitElement { : html`${this.id}`; if (this.users[this.id]) { - let image = this.users[this.id].image; - image = typeof image == 'string' ? image : image?.link; - return html`
- - ${name} -
`; - } else { - return html`
- ${name} -
`; + let image_link = this.users[this.id].image; + image_link = typeof image_link == 'string' ? image_link : image_link?.link; + if (image_link !== undefined) { + image = html``; + } } + return html`
+ ${image} + ${name} +
`; } }