diff options
| author | 2023-06-02 10:58:49 +0200 | |
|---|---|---|
| committer | 2023-06-02 10:58:49 +0200 | |
| commit | 84152d67f5c5158b1e75ce67c13e4af696e3f305 (patch) | |
| tree | bbf853ce17a95661d0fce8f234db450e6b1fcd14 /activitypub.c | |
| parent | Fixed bug in vote discarding in notify(). (diff) | |
| download | snac2-84152d67f5c5158b1e75ce67c13e4af696e3f305.tar.gz snac2-84152d67f5c5158b1e75ce67c13e4af696e3f305.tar.xz snac2-84152d67f5c5158b1e75ce67c13e4af696e3f305.zip | |
Fixed bug in notify() (the poll id was not set).
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
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, | |||
| 602 | if (strcmp(type, "Follow") == 0) | 602 | if (strcmp(type, "Follow") == 0) |
| 603 | objid = id; | 603 | objid = id; |
| 604 | 604 | ||
| 605 | notify_add(snac, type, utype, actor, objid); | 605 | notify_add(snac, type, utype, actor, objid != NULL ? objid : id); |
| 606 | } | 606 | } |
| 607 | 607 | ||
| 608 | 608 | ||