summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
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,
enqueue_telegram(body, bot, chat_id);
/* finally, store it in the notification folder */
- if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0)
+ if (strcmp(type, "Follow") == 0)
objid = id;
+ else
+ if (strcmp(utype, "Follow") == 0)
+ objid = actor;
notify_add(snac, type, utype, actor, objid != NULL ? objid : id);
}