aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/notification.php
diff options
context:
space:
mode:
authorliv2025-03-25 20:34:50 +0000
committerliv2025-03-25 20:34:50 +0000
commit3e0141d754b48056a9b395eb2304c2409d7ffcde (patch)
tree33a520b6a064c62dd86a047c02a61211938c094e /templates/notification.php
parent60072703467c93935fae239813881474d0c92fd0 (diff)
parent0a83d6a3f27b90355d450ce6b8390303c169a47f (diff)
chore: merge winter/digitigrade:main into main
Diffstat (limited to 'templates/notification.php')
-rw-r--r--templates/notification.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/notification.php b/templates/notification.php
index 0a54a6f..0c2c90e 100644
--- a/templates/notification.php
+++ b/templates/notification.php
@@ -23,8 +23,9 @@
<div class="notifTimestamp">
<?= format_datetime($timestamp) ?>
</div>
- <div hidden class="notifier" <?php if ($unread ?? false): ?> _="
- on load
+ <div hidden class="notifier" <?php if ($unread ?? false): ?> data-sent-notification="false" _="
+ on load if my @data-sent-notification is 'false'
+ set my @data-sent-notification to 'true'
set title to innerText of previous .title
set body to innerText of previous .body
set icon to @src of previous <img/>