diff options
Diffstat (limited to 'templates/note.php')
| -rw-r--r-- | templates/note.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/note.php b/templates/note.php index c3ec9fd..93a22fd 100644 --- a/templates/note.php +++ b/templates/note.php @@ -1,11 +1,14 @@ <article class="note"> - <img class="authorAvatar" src="<?= $note->author->avatar ?>"> + <picture> + <source srcset="<?= $note->author->avatar ?>"> + <img class="authorAvatar" src="/static/default-avatar.svg"> + </picture> <div> <a class="authorName" <?= isset($note->author->homepage) ? 'href="' . $note->author->homepage . '"' : '' ?>> <?= $note->author->displayName ?> </a> <div class="postContent"> - <?= $note->plainContent ?> + <?= $note->getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?> </div> </div> </article>
\ No newline at end of file |
