Profile image update fix.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4139 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-01-21 00:21:26 +00:00
parent dab7050899
commit c067623740
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ class TfMessageElement extends LitElement {
}
if (content.image !== undefined) {
image = html`
<div><img src=${'/' + content.image + '/view'} style="width: 256px; height: auto"></img></div>
<div><img src=${'/' + (typeof(content.image?.link) == 'string' ? content.image.link : content.image) + '/view'} style="width: 256px; height: auto"></img></div>
`;
}
if (content.description !== undefined) {