diff options
| author | winter | 2024-12-23 22:17:41 +0000 |
|---|---|---|
| committer | winter | 2024-12-23 22:17:41 +0000 |
| commit | 916d4521cb595493bc5df8b7f9ef52310b6d013a (patch) | |
| tree | d12b54f32339c2e6ae0bafc12bd4c30262615a5d /templates/note.php | |
| parent | 8f1f84d92cabf3a606585bc79eba14e63c149b60 (diff) | |
actor profile page
Diffstat (limited to 'templates/note.php')
| -rw-r--r-- | templates/note.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/templates/note.php b/templates/note.php index 9c4f609..6fcb477 100644 --- a/templates/note.php +++ b/templates/note.php @@ -1,17 +1,11 @@ -<?php -$fullHandle = $note->author->handle . ($note->author->isLocal ? '' : '@' . hostname_from_uri($note->author->uri)); -?> <article class="note"> - <a href="/@/<?= $fullHandle ?>"> - <picture> - <source srcset="<?= $note->author->avatar ?>"> - <img class="authorAvatar" src="/static/default-avatar.svg"> - </picture> + <a href="/@/<?= $note->author->getFullHandle() ?>"> + <?php call_template('actor_avatar', ['actor' => $note->author]); ?> </a> <div> <div class="infoLine"> <span class="authorName"><?= $note->author->displayName ?></span> - <span class="authorHandle">@<?= $fullHandle ?></span> + <span class="authorHandle">@<?= $note->author->getFullHandle() ?></span> <span class="timestamp"> <?= $note->created->format('Y-m-d \a\t H:i') |
