diff options
| author | winter | 2025-03-21 18:15:33 +0000 |
|---|---|---|
| committer | winter | 2025-03-21 18:15:33 +0000 |
| commit | a6f7ce85be666a86379eb4d044f2040b4d751dcf (patch) | |
| tree | 80b51416bbc17f03e9d8a1dfbf996f56a7ca7c0e | |
| parent | 0ac3e01bcc1750964ca864f0c16beedde4e89fed (diff) | |
fix display name link in left sidebar
| -rw-r--r-- | templates/note/write_form.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/note/write_form.php b/templates/note/write_form.php index 41c24f6..f7b7cb9 100644 --- a/templates/note/write_form.php +++ b/templates/note/write_form.php @@ -1,3 +1,5 @@ +<?php /** @var \Digitigrade\Model\Actor $actor */ ?> + <form hidden id="writeNoteAttachmentForm" action="/todo" hx-post="/fragment/note/attachmentPill" hx-swap="beforebegin" hx-target="#writeNoteAttachmentPillAdder" enctype="multipart/form-data"> <input hidden type="file" name="file" id="noteAttachmentFile" _="on change send submit to closest <form/>"> @@ -7,11 +9,12 @@ hx-disabled-elt="#writeNoteSubmitButton" _="on htmx:afterOnLoad trigger update on #liveTimelineUpdater" <?= ($_SERVER['REQUEST_METHOD'] == 'GET') ? 'hx-preserve' : '' ?>> <div class="row miniProfile"> - <a href="/@/<?= $actor->handle ?>" hx-target="#centrePane" hx-swap="outerHTML show:window:top"> + <a href="<?= $actor->getLocalUiHref() ?>" hx-target="#centrePane" hx-swap="outerHTML show:window:top"> <?php call_template('actor/avatar', ['actor' => $actor]); ?> </a> <div class="basicInfo"> - <a class="displayName" href="/@/<?= $actor->handle ?>"><?= htmlspecialchars($actor->displayName) ?></a> + <a class="displayName" href="<?= $actor->getLocalUiHref() ?>" hx-target="#centrePane" + hx-swap="outerHTML show:window:top"><?= htmlspecialchars($actor->displayName) ?></a> <div class="handle">@<?= $actor->handle ?></div> </div> </div> |
