diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -709,7 +709,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) | |||
| 709 | attr_list = xs_list_append(attr_list, att); | 709 | attr_list = xs_list_append(attr_list, att); |
| 710 | } | 710 | } |
| 711 | else | 711 | else |
| 712 | if (xs_type(att) == XSTYPE_LIST) | ||
| 712 | attr_list = xs_dup(att); | 713 | attr_list = xs_dup(att); |
| 714 | else | ||
| 715 | attr_list = xs_list_new(); | ||
| 713 | 716 | ||
| 714 | /* if it has an image, add it as an attachment */ | 717 | /* if it has an image, add it as an attachment */ |
| 715 | xs_dict *image = xs_dict_get(msg, "image"); | 718 | xs_dict *image = xs_dict_get(msg, "image"); |
| @@ -777,7 +780,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) | |||
| 777 | tag_list = xs_list_append(tag_list, tag); | 780 | tag_list = xs_list_append(tag_list, tag); |
| 778 | } | 781 | } |
| 779 | else | 782 | else |
| 783 | if (xs_type(tag) == XSTYPE_LIST) | ||
| 780 | tag_list = xs_dup(tag); | 784 | tag_list = xs_dup(tag); |
| 785 | else | ||
| 786 | tag_list = xs_list_new(); | ||
| 781 | 787 | ||
| 782 | tag = tag_list; | 788 | tag = tag_list; |
| 783 | xs_dict *v; | 789 | xs_dict *v; |