diff options
author | default <nobody@localhost> | 2023-02-05 17:45:00 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-02-05 17:45:00 +0100 |
commit | 71a7569467a53f8533c0eb0f5c62ed94744ed996 (patch) | |
tree | 7bebbe5d9059a1e7308ff87110cba718b6fd43c5 /html.c | |
parent | bad9f3a8c638f434bd04243791aecce950a104ba (diff) |
Deleted the type argument from object_get_my_md5() and object_get().
It was never used.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -655,7 +655,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local, int level, cons s = xs_str_cat(s, s1); } else - if (valid_status(object_get_by_md5(p, &actor_r, NULL))) { + if (valid_status(object_get_by_md5(p, &actor_r))) { char *name; 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 * xs *id = xs_fmt("%s/%s", snac.actor, p_path); xs *msg = NULL; - if (valid_status(object_get(id, &msg, NULL))) { + if (valid_status(object_get(id, &msg))) { xs *md5 = xs_md5_hex(id, strlen(id)); xs *list = xs_list_new(); @@ -1416,7 +1416,7 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, /* an edition of a previous message */ xs *p_msg = NULL; - if (valid_status(object_get(edit_id, &p_msg, NULL))) { + if (valid_status(object_get(edit_id, &p_msg))) { /* copy relevant fields from previous version */ char *fields[] = { "id", "context", "url", "published", "to", "inReplyTo", NULL }; |