diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index de7de6a..d0ef866 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -686,8 +686,11 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, | |||
| 686 | enqueue_telegram(body, bot, chat_id); | 686 | enqueue_telegram(body, bot, chat_id); |
| 687 | 687 | ||
| 688 | /* finally, store it in the notification folder */ | 688 | /* finally, store it in the notification folder */ |
| 689 | if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) | 689 | if (strcmp(type, "Follow") == 0) |
| 690 | objid = id; | 690 | objid = id; |
| 691 | else | ||
| 692 | if (strcmp(utype, "Follow") == 0) | ||
| 693 | objid = actor; | ||
| 691 | 694 | ||
| 692 | notify_add(snac, type, utype, actor, objid != NULL ? objid : id); | 695 | notify_add(snac, type, utype, actor, objid != NULL ? objid : id); |
| 693 | } | 696 | } |