diff --git a/README.md b/README.md
index 0710aedc..2aef15b3 100644
--- a/README.md
+++ b/README.md
@@ -213,6 +213,6 @@ Third party libraries and resources:
* [GoReleaser](https://goreleaser.com/) (MIT) is used to create releases
* [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) (MIT) is used to provide the persistent message cache
* [Firebase Admin SDK](https://github.com/firebase/firebase-admin-go) (Apache 2.0) is used to send FCM messages
-* [emoji-java](https://github.com/vdurmont/emoji-java) (MIT) is used for emoji support (the emoji.json file only)
+* [github/gemoji](https://github.com/github/gemoji) (MIT) is used for emoji support (specifically the [emoji.json](https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json) file)
* [Lightbox with vanilla JS](https://yossiabramov.com/blog/vanilla-js-lightbox)
* [Statically linking go-sqlite3](https://www.arp242.net/static-go.html)
diff --git a/server/index.gohtml b/server/index.gohtml
index 3c248729..7c99451d 100644
--- a/server/index.gohtml
+++ b/server/index.gohtml
@@ -85,7 +85,7 @@
curl \
-H "Title: Unauthorized access detected" \
-H "Priority: urgent" \
- -H "Tags: warn,skull" \
+ -H "Tags: warning,skull" \
-d "Remote access to $(hostname) detected. Act right away." \
ntfy.sh/mytopic
@@ -228,16 +228,22 @@
curl -H "Title: Dogs are better than cats" -d "Oh my ..." ntfy.sh/mytopic
-
+ You can tag messages with emojis (or other relevant strings). If a tag matches a known emoji short code, + it will be converted to an emoji. If it doesn't match, it will be listed below the notification. This is useful + for things like warnings and such (⚠️, ️🚨, or 🚩), but also to simply tag messages otherwise (e.g. which script the + message came from, ...). +
- You can tag notifications with emojis (or other relevant strings). In the phone app, the tags will be converted - to emojis and prepended to the message or title in the notification. You can set tags with the X-Tags header - (or any of its aliases: Tags, or ta). Use this reference - to figure out what tags you can use to send emojis. + You can set tags with the X-Tags header (or any of its aliases: Tags, or ta). + Use this reference + to figure out what tags can be converted to emojis. In the example below, the tag "warning" matches the emoji ⚠️, + the tag "ssh-login" doesn't match and will be displayed below the message.
- curl -H "Tags: warn,skull" -d "Unauthorized SSH access" ntfy.sh/mytopic
- curl -H tags:thumbsup -d "Backup successful" ntfy.sh/mytopic
+ $ curl -H "Tags: warning,ssh-login" -d "Unauthorized SSH access" ntfy.sh/mytopic
+ {"id":"ZEIwjfHlSS",...,"tags":["warning","ssh-login"],"message":"Unauthorized SSH access"}
#!/bin/bash
if [ "${PAM_TYPE}" = "open_session" ]; then
- curl -H tags:warn -d "SSH login: ${PAM_USER} from ${PAM_RHOST}" ntfy.sh/alerts
+ curl -H tags:warning -d "SSH login: ${PAM_USER} from ${PAM_RHOST}" ntfy.sh/alerts
fi
@@ -405,6 +411,7 @@
+