diff options
| author | 2024-06-17 14:57:05 +0200 | |
|---|---|---|
| committer | 2024-06-17 14:57:05 +0200 | |
| commit | 5b1e77118420bf680a55116b940475d56fbe0cea (patch) | |
| tree | 54406aa25d1a6d2d3a3f43d338808389540f812b | |
| parent | Minor tweak to rel=me links. (diff) | |
| download | snac2-5b1e77118420bf680a55116b940475d56fbe0cea.tar.gz snac2-5b1e77118420bf680a55116b940475d56fbe0cea.tar.xz snac2-5b1e77118420bf680a55116b940475d56fbe0cea.zip | |
Deleted repeated code.
| -rw-r--r-- | activitypub.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/activitypub.c b/activitypub.c index 8998acd..6bd4b65 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -927,13 +927,6 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, | |||
| 927 | if (!xs_is_null(bot) && !xs_is_null(chat_id) && *bot && *chat_id) | 927 | if (!xs_is_null(bot) && !xs_is_null(chat_id) && *bot && *chat_id) |
| 928 | enqueue_telegram(body, bot, chat_id); | 928 | enqueue_telegram(body, bot, chat_id); |
| 929 | 929 | ||
| 930 | /* finally, store it in the notification folder */ | ||
| 931 | if (strcmp(type, "Follow") == 0) | ||
| 932 | objid = id; | ||
| 933 | else | ||
| 934 | if (strcmp(utype, "Follow") == 0) | ||
| 935 | objid = actor; | ||
| 936 | |||
| 937 | /* ntfy */ | 930 | /* ntfy */ |
| 938 | const char *ntfy_server = xs_dict_get(snac->config, "ntfy_server"); | 931 | const char *ntfy_server = xs_dict_get(snac->config, "ntfy_server"); |
| 939 | const char *ntfy_token = xs_dict_get(snac->config, "ntfy_token"); | 932 | const char *ntfy_token = xs_dict_get(snac->config, "ntfy_token"); |