From 78b468f013cc2624a4b9044393eb2c86556c98b7 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 4 Jul 2023 14:23:12 +0200 Subject: More unfollow notification tweaks. --- activitypub.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'activitypub.c') 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); } -- cgit v1.2.3