mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[PR #725] [MERGED] Convert mailer_emoji JSON file to map #1393
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/725
Author: @adamantike
Created: 5/13/2023
Status: ✅ Merged
Merged: 5/14/2023
Merged by: @binwiederhier
Base:
main← Head:misc/migrate-mailer-emoji-json-to-map📝 Commits (1)
49bd612Convert mailer_emoji JSON file to map📊 Changes
3 files changed (+1868 additions, -19 deletions)
View changed files
➖
server/mailer_emoji.json(+0 -1)➕
server/mailer_emoji_map.json(+1857 -0)📝
server/smtp_sender.go(+11 -18)📄 Description
This fixes a pending TODO comment regarding inefficient tags to emojis mapping, by requiring a full scan over emoji aliases to determine matches.
Instead, now the JSON file is a map, with aliases as keys, and emojis as values. The script to convert the file with Python was:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.