diff options
| author | 2023-04-14 13:05:36 +0200 | |
|---|---|---|
| committer | 2023-04-14 13:05:36 +0200 | |
| commit | a050be91079e5c65589d57e9e00421345d113ac9 (patch) | |
| tree | 9a8576d3abb0ad83af28160cf2c891e9b440f448 /activitypub.c | |
| parent | New notifications web page. (diff) | |
| download | snac2-a050be91079e5c65589d57e9e00421345d113ac9.tar.gz snac2-a050be91079e5c65589d57e9e00421345d113ac9.tar.xz snac2-a050be91079e5c65589d57e9e00421345d113ac9.zip | |
Don't show the full tree in notifications.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 851699a..bf9ce67 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -937,6 +937,9 @@ void notify(snac *snac, xs_str *type, xs_str *utype, xs_str *actor, xs_dict *msg | |||
| 937 | enqueue_telegram(body, bot, chat_id); | 937 | enqueue_telegram(body, bot, chat_id); |
| 938 | 938 | ||
| 939 | /* finally, store it in the notification folder */ | 939 | /* finally, store it in the notification folder */ |
| 940 | if (strcmp(type, "Follow") == 0) | ||
| 941 | objid = xs_dict_get(msg, "id"); | ||
| 942 | |||
| 940 | notify_add(snac, type, utype, actor, objid); | 943 | notify_add(snac, type, utype, actor, objid); |
| 941 | } | 944 | } |
| 942 | 945 | ||