diff options
| author | 2023-02-05 17:45:00 +0100 | |
|---|---|---|
| committer | 2023-02-05 17:45:00 +0100 | |
| commit | 71a7569467a53f8533c0eb0f5c62ed94744ed996 (patch) | |
| tree | 7bebbe5d9059a1e7308ff87110cba718b6fd43c5 /html.c | |
| parent | Renamed timeline_get() to timeline_get_by_md5(), as that is what id does. (diff) | |
| download | snac2-71a7569467a53f8533c0eb0f5c62ed94744ed996.tar.gz snac2-71a7569467a53f8533c0eb0f5c62ed94744ed996.tar.xz snac2-71a7569467a53f8533c0eb0f5c62ed94744ed996.zip | |
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 | |||
| 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 }; |