summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index 893db2e..f163921 100644
--- a/html.c
+++ b/html.c
@@ -655,7 +655,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons
655 s = xs_str_cat(s, s1); 655 s = xs_str_cat(s, s1);
656 } 656 }
657 else 657 else
658 if (valid_status(object_get_by_md5(p, &actor_r, NULL))) { 658 if (valid_status(object_get_by_md5(p, &actor_r))) {
659 char *name; 659 char *name;
660 660
661 if ((name = xs_dict_get(actor_r, "name")) == NULL) 661 if ((name = xs_dict_get(actor_r, "name")) == NULL)
@@ -1190,7 +1190,7 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
1190 xs *id = xs_fmt("%s/%s", snac.actor, p_path); 1190 xs *id = xs_fmt("%s/%s", snac.actor, p_path);
1191 xs *msg = NULL; 1191 xs *msg = NULL;
1192 1192
1193 if (valid_status(object_get(id, &msg, NULL))) { 1193 if (valid_status(object_get(id, &msg))) {
1194 xs *md5 = xs_md5_hex(id, strlen(id)); 1194 xs *md5 = xs_md5_hex(id, strlen(id));
1195 xs *list = xs_list_new(); 1195 xs *list = xs_list_new();
1196 1196
@@ -1416,7 +1416,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
1416 /* an edition of a previous message */ 1416 /* an edition of a previous message */
1417 xs *p_msg = NULL; 1417 xs *p_msg = NULL;
1418 1418
1419 if (valid_status(object_get(edit_id, &p_msg, NULL))) { 1419 if (valid_status(object_get(edit_id, &p_msg))) {
1420 /* copy relevant fields from previous version */ 1420 /* copy relevant fields from previous version */
1421 char *fields[] = { "id", "context", "url", "published", 1421 char *fields[] = { "id", "context", "url", "published",
1422 "to", "inReplyTo", NULL }; 1422 "to", "inReplyTo", NULL };