Explorar o código

Fixed bug in get_attachments().

default %!s(int64=2) %!d(string=hai) anos
pai
achega
5d4e0b0914
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      activitypub.c

+ 1 - 1
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);