Files
ntfy/server
Michael Manganiello 49bd6129ff Convert mailer_emoji JSON file to map
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:

```python
import json

with open("./mailer_emoji.json", "r", encoding="utf-8") as f:
    content = json.load(f)

emoji_map = {}
for emoji in content:
    for alias in emoji["aliases"]:
        if alias in emoji_map:
            print("WARNING: Duplicate alias:", alias)
            continue
        emoji_map[alias] = str(emoji["emoji"])

sorted_emoji_map = {k: emoji_map[k] for k in sorted(emoji_map)}

with open("./mailer_emoji_map.json", "w", encoding="utf-8") as f:
    json.dump(sorted_emoji_map, f, indent=4, ensure_ascii=False)
```
2023-05-13 11:43:47 -03:00
..
2022-06-22 20:23:15 -04:00
2022-10-01 15:50:48 -04:00
2021-12-22 14:17:50 +01:00
2023-05-01 11:58:49 -04:00
2023-04-21 21:07:07 -04:00
2023-03-02 20:25:13 -05:00
2023-04-20 22:04:11 -04:00
2023-01-02 20:08:37 -05:00
2023-02-15 10:55:01 -05:00
2023-04-21 11:09:13 -04:00
2023-03-04 09:32:29 -05:00
2023-03-16 22:19:20 -04:00
2023-05-01 11:58:49 -04:00
2023-02-25 20:23:22 -05:00
2023-05-01 11:58:49 -04:00
2023-05-01 11:58:49 -04:00
2023-05-01 11:58:49 -04:00
WIP
2021-12-27 16:39:28 +01:00
2023-05-09 20:57:09 -04:00
2023-05-02 14:16:59 -04:00
2023-05-02 14:16:59 -04:00
2023-04-20 22:04:11 -04:00
2023-04-21 21:07:07 -04:00
2023-03-03 13:56:48 -05:00