summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-16 18:20:48 +0100
committerdefault <nobody@localhost>2024-02-16 18:20:48 +0100
commit5d4e0b0914ca5410c245aa1d4b4db4580a5ca278 (patch)
treeecf95fb0fc70457eb78bbb0eef1ca5800964662d /activitypub.c
parentc172e918b1a29bd72008f354345d3078556da238 (diff)
Fixed bug in get_attachments().
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 87d2923..bd0efd4 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -198,7 +198,7 @@ xs_list *get_attachments(const xs_dict *msg)
/* ensure it's a list */
if (xs_type(p) == XSTYPE_DICT) {
attach = xs_list_new();
- attach = xs_list_append(attach, v);
+ attach = xs_list_append(attach, p);
}
else
attach = xs_dup(p);