diff options
| -rw-r--r-- | Digitigrade/Model/Note.php | 2 | ||||
| -rw-r--r-- | templates/note/write_form.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Digitigrade/Model/Note.php b/Digitigrade/Model/Note.php index c39b7c3..9a7aa4c 100644 --- a/Digitigrade/Model/Note.php +++ b/Digitigrade/Model/Note.php @@ -372,7 +372,7 @@ class Note extends PushableModel implements TimelineIncludeable, Notifyable { return sprintf(__("notifications.$action.title"), $this->author->displayName); } public function getNotificationTitleLink(): ?string { - return $this->author->getLocalUiHref(); + return $this->getLocalUiHref(); } public function getNotificationBody(): ?string { return isset($this->summary) ? "[$this->summary]" : $this->plainContent; diff --git a/templates/note/write_form.php b/templates/note/write_form.php index 46422b0..41c24f6 100644 --- a/templates/note/write_form.php +++ b/templates/note/write_form.php @@ -4,7 +4,7 @@ </form> <form id="writeNoteForm" action="/todo" method="post" hx-post="/fragment/note" hx-swap="outerHTML" hx-target="this" - hx-disabled-elt="find button" _="on htmx:afterOnLoad trigger update on #liveTimelineUpdater" + 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"> @@ -44,6 +44,6 @@ </div> </details> <div class="row"> - <button class="primary"><?= __('writeNote.action') ?></button> + <button class="primary" id="writeNoteSubmitButton"><?= __('writeNote.action') ?></button> </div> </form>
\ No newline at end of file |
