[GH-ISSUE #1394] Missing emoji in JSON stream #982

Closed
opened 2026-05-07 00:29:21 +02:00 by BreizhHardware · 2 comments

Originally created by @xxynet on GitHub (Jul 20, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1394

🐞 Describe the bug

i built a Python script that receives messages from my self-hosted seerver via json stream and clicked "send test notification" on the webpage, it sent a notification with an emoji in title, but that emoji didn't appear in the json stream.

💻 Components impacted

💡 Screenshots and/or logs

json stream:

{"id":"FpbryhJaF7Gg","time":1752980341,"expires":1753023541,"event":"message","topic":"test","title":"Oh my, another test message?","message":"There are nine million bicycles in Beijing That's a fact; It's a thing we can't deny. I wonder if that's true ...","priority":1,"tags":["warning"]}

Image

🔮 Additional context

the script i used: https://github.com/xxynet/ntfy-desktop

Originally created by @xxynet on GitHub (Jul 20, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1394 :lady_beetle: **Describe the bug** <!-- A clear and concise description of the problem. --> i built a Python script that receives messages from my self-hosted seerver via json stream and clicked "send test notification" on the webpage, it sent a notification with an emoji in title, but that emoji didn't appear in the json stream. :computer: **Components impacted** <!-- ntfy server, Android app, iOS app, web app --> :bulb: **Screenshots and/or logs** <!-- If applicable, add screenshots or share logs help explain your problem. To get logs from the ... - ntfy server: Enable "log-level: trace" in your server.yml file - Android app: Go to "Settings" -> "Record logs", then eventually "Copy/upload logs" - web app: Press "F12" and find the "Console" window --> json stream: {"id":"FpbryhJaF7Gg","time":1752980341,"expires":1753023541,"event":"message","topic":"test","title":"Oh my, another test message?","message":"There are nine million bicycles in Beijing That's a fact; It's a thing we can't deny. I wonder if that's true ...","priority":1,"tags":["warning"]} <img width="1691" height="256" alt="Image" src="https://github.com/user-attachments/assets/15a5bfa0-f383-4293-a5cf-f2b928396a66" /> :crystal_ball: **Additional context** <!-- Add any other context about the problem here. --> the script i used: https://github.com/xxynet/ntfy-desktop
BreizhHardware 2026-05-07 00:29:21 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@wunter8 commented on GitHub (Jul 20, 2025):

The emoji in the title comes from the tags. warning corresponds to the yellow caution triangle. See the docs here: https://docs.ntfy.sh/publish/#tags-emojis

You can tag messages with emojis and other relevant strings:

  • Emojis: If a tag matches an emoji short code, it'll be converted to an emoji and prepended to title or message.
  • Other tags: If a tag doesn't match, it will be listed below the notification.
<!-- gh-comment-id:3092879803 --> @wunter8 commented on GitHub (Jul 20, 2025): The emoji in the title comes from the `tags`. `warning` corresponds to the yellow caution triangle. See the docs here: https://docs.ntfy.sh/publish/#tags-emojis > You can tag messages with emojis and other relevant strings: > * Emojis: If a tag matches an [emoji short code](https://docs.ntfy.sh/emojis/), it'll be converted to an emoji and prepended to title or message. > * Other tags: If a tag doesn't match, it will be listed below the notification.
Author
Owner

@xxynet commented on GitHub (Jul 20, 2025):

The emoji in the title comes from the tags. warning corresponds to the yellow caution triangle. See the docs here: https://docs.ntfy.sh/publish/#tags-emojis

You can tag messages with emojis and other relevant strings:

  • Emojis: If a tag matches an emoji short code, it'll be converted to an emoji and prepended to title or message.
  • Other tags: If a tag doesn't match, it will be listed below the notification.

I got it, thanks so much

<!-- gh-comment-id:3093098160 --> @xxynet commented on GitHub (Jul 20, 2025): > The emoji in the title comes from the `tags`. `warning` corresponds to the yellow caution triangle. See the docs here: https://docs.ntfy.sh/publish/#tags-emojis > > > You can tag messages with emojis and other relevant strings: > > > > * Emojis: If a tag matches an [emoji short code](https://docs.ntfy.sh/emojis/), it'll be converted to an emoji and prepended to title or message. > > * Other tags: If a tag doesn't match, it will be listed below the notification. I got it, thanks so much
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#982
No description provided.