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 83dac0a..4aa0fa4 100644
--- a/html.c
+++ b/html.c
@@ -2117,7 +2117,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2117 if (!xs_is_null(parent) && *parent) { 2117 if (!xs_is_null(parent) && *parent) {
2118 xs *md5 = xs_md5_hex(parent, strlen(parent)); 2118 xs *md5 = xs_md5_hex(parent, strlen(parent));
2119 2119
2120 if (!timeline_here(user, md5)) { 2120 if (!timeline_here_by_md5(user, md5)) {
2121 xs_html_add(post_header, 2121 xs_html_add(post_header,
2122 xs_html_tag("div", 2122 xs_html_tag("div",
2123 xs_html_attr("class", "snac-origin"), 2123 xs_html_attr("class", "snac-origin"),
@@ -3775,7 +3775,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
3775 /* add the post to the timeline */ 3775 /* add the post to the timeline */
3776 xs *md5 = xs_md5_hex(q, strlen(q)); 3776 xs *md5 = xs_md5_hex(q, strlen(q));
3777 3777
3778 if (!timeline_here(&snac, md5)) 3778 if (!timeline_here_by_md5(&snac, md5))
3779 timeline_add(&snac, q, object); 3779 timeline_add(&snac, q, object);
3780 } 3780 }
3781 } 3781 }
@@ -3917,7 +3917,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
3917 xs *l = xs_split(p_path, "/"); 3917 xs *l = xs_split(p_path, "/");
3918 const char *md5 = xs_list_get(l, -1); 3918 const char *md5 = xs_list_get(l, -1);
3919 3919
3920 if (md5 && *md5 && timeline_here(&snac, md5)) { 3920 if (md5 && *md5 && timeline_here_by_md5(&snac, md5)) {
3921 xs *list0 = xs_list_append(xs_list_new(), md5); 3921 xs *list0 = xs_list_append(xs_list_new(), md5);
3922 xs *list = timeline_top_level(&snac, list0); 3922 xs *list = timeline_top_level(&snac, list0);
3923 3923