diff options
author | default <nobody@localhost> | 2023-07-04 14:23:12 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-07-04 14:23:12 +0200 |
commit | 78b468f013cc2624a4b9044393eb2c86556c98b7 (patch) | |
tree | 356b5fbe8a167b4c309302a56af17bff4de310b6 /activitypub.c | |
parent | 51c3fc9267aecabfc795a03994c9f48bb324b9cc (diff) |
More unfollow notification tweaks.
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, 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); } |