diff options
| author | 2024-02-16 18:20:48 +0100 | |
|---|---|---|
| committer | 2024-02-16 18:20:48 +0100 | |
| commit | 5d4e0b0914ca5410c245aa1d4b4db4580a5ca278 (patch) | |
| tree | ecf95fb0fc70457eb78bbb0eef1ca5800964662d | |
| parent | Added verify_links to usage(). (diff) | |
| download | snac2-5d4e0b0914ca5410c245aa1d4b4db4580a5ca278.tar.gz snac2-5d4e0b0914ca5410c245aa1d4b4db4580a5ca278.tar.xz snac2-5d4e0b0914ca5410c245aa1d4b4db4580a5ca278.zip | |
Fixed bug in get_attachments().
| -rw-r--r-- | activitypub.c | 2 |
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) | |||
| 198 | /* ensure it's a list */ | 198 | /* ensure it's a list */ |
| 199 | if (xs_type(p) == XSTYPE_DICT) { | 199 | if (xs_type(p) == XSTYPE_DICT) { |
| 200 | attach = xs_list_new(); | 200 | attach = xs_list_new(); |
| 201 | attach = xs_list_append(attach, v); | 201 | attach = xs_list_append(attach, p); |
| 202 | } | 202 | } |
| 203 | else | 203 | else |
| 204 | attach = xs_dup(p); | 204 | attach = xs_dup(p); |