diff options
| author | 2022-12-23 10:01:10 +0100 | |
|---|---|---|
| committer | 2022-12-23 10:01:10 +0100 | |
| commit | 0bba515cf0e7b77a7daf697b1c8a13d185715bca (patch) | |
| tree | aced70b90747bb6d750b26ca0509dc23e541af4e /html.c | |
| parent | Don't generate inReplyTo as an empty string. (diff) | |
| download | snac2-0bba515cf0e7b77a7daf697b1c8a13d185715bca.tar.gz snac2-0bba515cf0e7b77a7daf697b1c8a13d185715bca.tar.xz snac2-0bba515cf0e7b77a7daf697b1c8a13d185715bca.zip | |
timeline_request() fixes the canonical id for the object.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1358,7 +1358,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 1358 | 1358 | ||
| 1359 | if (msg != NULL) { | 1359 | if (msg != NULL) { |
| 1360 | enqueue_message(&snac, msg); | 1360 | enqueue_message(&snac, msg); |
| 1361 | timeline_admire(&snac, msg, id, snac.actor, 1); | 1361 | timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 1); |
| 1362 | } | 1362 | } |
| 1363 | } | 1363 | } |
| 1364 | else | 1364 | else |
| @@ -1367,7 +1367,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | |||
| 1367 | 1367 | ||
| 1368 | if (msg != NULL) { | 1368 | if (msg != NULL) { |
| 1369 | enqueue_message(&snac, msg); | 1369 | enqueue_message(&snac, msg); |
| 1370 | timeline_admire(&snac, msg, id, snac.actor, 0); | 1370 | timeline_admire(&snac, msg, xs_dict_get(msg, "object"), snac.actor, 0); |
| 1371 | } | 1371 | } |
| 1372 | } | 1372 | } |
| 1373 | else | 1373 | else |