aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note
diff options
context:
space:
mode:
Diffstat (limited to 'templates/note')
-rw-r--r--templates/note/write_form.php7
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>