From 84152d67f5c5158b1e75ce67c13e4af696e3f305 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 2 Jun 2023 10:58:49 +0200 Subject: Fixed bug in notify() (the poll id was not set). --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index c28e52f..67b4739 100644 --- a/activitypub.c +++ b/activitypub.c @@ -602,7 +602,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, if (strcmp(type, "Follow") == 0) objid = id; - notify_add(snac, type, utype, actor, objid); + notify_add(snac, type, utype, actor, objid != NULL ? objid : id); } -- cgit v1.2.3