diff options
| author | winter | 2025-04-04 20:23:19 +0100 |
|---|---|---|
| committer | winter | 2025-04-04 20:23:19 +0100 |
| commit | 1dff99922724fa9fb7da7e41f645197a312786cb (patch) | |
| tree | 4784e4828521040a4955f3ec8e89a84b689fb4a3 /templates/note/note.php | |
| parent | 44212e6248c93171ddedb51bfdb212ce8ffed695 (diff) | |
add web+pawpub support
Diffstat (limited to 'templates/note/note.php')
| -rw-r--r-- | templates/note/note.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/note/note.php b/templates/note/note.php index ddc2bac..fe28416 100644 --- a/templates/note/note.php +++ b/templates/note/note.php @@ -126,6 +126,17 @@ if ($user != null) { <span><?= __('action.share') ?></span> </button> </li> + <li> + <button data-share-url="<?= htmlspecialchars(substr_replace($note->uri, 'web+pawpub', 0, 5)) ?>" _=" + on click + set url to my @data-share-url + js(url) + navigator.share({ url: url }) + end" type="button"> + <span class="material-symbols share-windows"></span> + <span><?= __('action.share.web+pawpub') ?></span> + </button> + </li> <?php if ($note->author->isLocal && ($note->author == $user?->actor || $user?->isAdmin) && !$note->hasPage()): ?> <li> <button hx-get="/fragment/note/<?= $note->id ?>/edit" hx-target="closest .note" hx-swap="outerHTML"> |
