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
..
actions.go Bump Go version, Generics whoooo 2022-10-01 15:50:48 -04:00
actions_test.go Format actions PR, changelog 2022-06-22 20:23:15 -04:00
config.go Remove old homepage 2023-05-01 11:58:49 -04:00
config_test.go Tests, client tests WIP 2021-12-22 14:17:50 +01:00
errors.go Simplify 2023-04-21 21:07:07 -04:00
file_cache.go Allow /metrics on default port; reduce memory if not enabled 2023-03-15 22:34:06 -04:00
file_cache_test.go Plan-based message and attachment expiry 2023-01-07 09:34:02 -05:00
log.go Allow SMTP servers without auth 2023-03-02 20:25:13 -05:00
mailer_emoji_map.json Convert mailer_emoji JSON file to map 2023-05-13 11:43:47 -03:00
message_cache.go WIP: persist message stats 2023-04-20 22:04:11 -04:00
message_cache_test.go Introduce text IDs for everything (esp user), to avoid security and accounting issues 2023-01-21 23:15:22 -05:00
ntfy.service Add --trace and --no-log-dates; add docs 2022-06-02 10:50:05 -04:00
server.go Remove old homepage 2023-05-01 11:58:49 -04:00
server.yml Remove old homepage 2023-05-01 11:58:49 -04:00
server_account.go Support for annual billing intervals 2023-02-21 22:44:30 -05:00
server_account_test.go Just comment the test for now 2023-03-29 15:03:41 -04:00
server_firebase.go Minor tweaks 2023-02-15 10:55:01 -05:00
server_firebase_test.go Introduce Reservation 2023-01-02 20:08:37 -05:00
server_manager.go Add tests, and proper rate 2023-04-21 11:09:13 -04:00
server_manager_test.go Fix panic in manager when attachment-cache-dir is not set, fixes #617 2023-02-17 15:56:48 -05:00
server_matrix.go Tiny changes 2023-03-04 09:32:29 -05:00
server_matrix_test.go Adjust Matrix/UP behavior to work with Synapse+Mastodon 2023-02-25 15:12:03 -05:00
server_metrics.go More metrics 2023-03-16 22:19:20 -04:00
server_middleware.go Remove old homepage 2023-05-01 11:58:49 -04:00
server_payments.go Logging improvements, etc. 2023-02-25 20:23:22 -05:00
server_payments_test.go Logging improvements, etc. 2023-02-25 20:23:22 -05:00
server_test.go Remove old homepage 2023-05-01 11:58:49 -04:00
smtp_sender.go Convert mailer_emoji JSON file to map 2023-05-13 11:43:47 -03:00
smtp_sender_test.go WIP 2021-12-27 16:39:28 +01:00
smtp_server.go Add quoted-printable decoding to smtp server 2023-05-08 10:54:34 +02:00
smtp_server_test.go Formatting 2023-05-09 20:57:09 -04:00
topic.go Fix test and retry 2023-05-02 14:16:59 -04:00
topic_test.go Fix test and retry 2023-05-02 14:16:59 -04:00
types.go WIP: persist message stats 2023-04-20 22:04:11 -04:00
util.go Simplify 2023-04-21 21:07:07 -04:00
util_test.go Return HTTP 500 on Matrix discovery GET if base-url not configured; log entire HTTP request when TRACE enabled 2022-06-19 21:25:35 -04:00
visitor.go Add visitor_seen to the log context 2023-03-03 13:56:48 -05:00