diff options
| author | winter | 2025-02-14 22:47:05 +0000 |
|---|---|---|
| committer | winter | 2025-02-14 22:47:05 +0000 |
| commit | 65dfe7aff06dfd3b044a5deb47b03d643c651ec1 (patch) | |
| tree | d86894a978336edaeb269a25944c1ed2dacc80e3 /templates/note.php | |
| parent | 5af36fccc0904cf743e3d598813d246e3fa52634 (diff) | |
add pronouns to profiles and notes
Diffstat (limited to 'templates/note.php')
| -rw-r--r-- | templates/note.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/note.php b/templates/note.php index 736d5f9..81f7e38 100644 --- a/templates/note.php +++ b/templates/note.php @@ -25,7 +25,12 @@ if ($user != null) { <div class="infoLine"> <a class="authorName" href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>"><?= htmlspecialchars($note->author->displayName) ?></a> - <span class="authorHandle">@<?= htmlspecialchars($note->author->getFullHandle()) ?></span> + <span class="authorHandle"> + <?php if (isset($note->author->pronouns) && trim($note->author->pronouns) != ''): ?> + <?= htmlspecialchars($note->author->pronouns) ?> • + <?php endif; ?> + @<?= htmlspecialchars($note->author->getFullHandle()) ?> + </span> <a class="timestamp" href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>/note/<?= $note->id ?>"> <?= format_datetime($note->created, $prefs?->get('locale.timezone')) |
