diff options
| author | winter | 2024-12-23 19:48:28 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 19:48:28 +0000 |
| commit | 505d25e29f1c13403bfbfe7cd9d1ab125be87a4b (patch) | |
| tree | 1f2e914b3aacd57defb84acf78a871ad1f896927 /templates/note.php | |
| parent | bccad1118364427ea5c97c08d132fd128368760b (diff) | |
make the timelines look nicer and add local tl
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 |
