summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-02 10:58:49 +0200
committerdefault <nobody@localhost>2023-06-02 10:58:49 +0200
commit84152d67f5c5158b1e75ce67c13e4af696e3f305 (patch)
treebbf853ce17a95661d0fce8f234db450e6b1fcd14 /activitypub.c
parentb0337f55b5c0afe32231f1efffe7aa184319b7e3 (diff)
Fixed bug in notify() (the poll id was not set).
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
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);
}