diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -1303,11 +1303,12 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 1303 | xs_str *v; | 1303 | xs_str *v; |
| 1304 | 1304 | ||
| 1305 | while (xs_list_iter(&p, &v)) { | 1305 | while (xs_list_iter(&p, &v)) { |
| 1306 | xs *l = xs_list_new(); | 1306 | xs *l = xs_list_new(); |
| 1307 | xs *url = xs_fmt("%s/s/%s", snac.actor, v); | 1307 | xs *url = xs_fmt("%s/s/%s", snac.actor, v); |
| 1308 | xs *desc = static_get_meta(&snac, v); | ||
| 1308 | 1309 | ||
| 1309 | l = xs_list_append(l, url); | 1310 | l = xs_list_append(l, url); |
| 1310 | l = xs_list_append(l, ""); | 1311 | l = xs_list_append(l, desc); |
| 1311 | 1312 | ||
| 1312 | attach_list = xs_list_append(attach_list, l); | 1313 | attach_list = xs_list_append(attach_list, l); |
| 1313 | } | 1314 | } |
| @@ -1498,6 +1499,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 1498 | 1499 | ||
| 1499 | /* store */ | 1500 | /* store */ |
| 1500 | static_put(&snac, id, payload + fo, fs); | 1501 | static_put(&snac, id, payload + fo, fs); |
| 1502 | static_put_meta(&snac, id, desc); | ||
| 1501 | 1503 | ||
| 1502 | /* prepare a response */ | 1504 | /* prepare a response */ |
| 1503 | xs *rsp = xs_dict_new(); | 1505 | xs *rsp = xs_dict_new(); |