diff options
| author | winter | 2024-12-31 22:30:16 +0000 |
|---|---|---|
| committer | winter | 2024-12-31 22:31:26 +0000 |
| commit | 4cd7017da9a37e5b9f38c3f50dd1c904ea41cbcb (patch) | |
| tree | d77f1fd223dae44f40b22c9810aeba238733310d /templates/actor_avatar.php | |
| parent | 982e6213622bcb78a40d17f54cda27225a1d84b3 (diff) | |
implement user accounts and login
Diffstat (limited to 'templates/actor_avatar.php')
| -rw-r--r-- | templates/actor_avatar.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/actor_avatar.php b/templates/actor_avatar.php index d428006..439072b 100644 --- a/templates/actor_avatar.php +++ b/templates/actor_avatar.php @@ -1,4 +1,5 @@ -<picture class="avatar"> - <source srcset="<?= $actor->avatar ?>"> - <img src="/static/default-avatar.svg"> -</picture>
\ No newline at end of file +<?php if (isset($actor->avatar)): ?> + <img class="avatar" src="<?= $actor->avatar ?>"> +<?php else: ?> + <img class="avatar" src="/static/default-avatar.svg"> +<?php endif; ?>
\ No newline at end of file |
