diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -3139,11 +3139,16 @@ xs_str *html_notifications(snac *user, int skip, int show) | |||
| 3139 | else | 3139 | else |
| 3140 | if (obj != NULL) { | 3140 | if (obj != NULL) { |
| 3141 | xs *md5 = xs_md5_hex(id, strlen(id)); | 3141 | xs *md5 = xs_md5_hex(id, strlen(id)); |
| 3142 | xs *ctxt = xs_fmt("%s/admin/p/%s#%s_entry", user->actor, md5, md5); | ||
| 3142 | 3143 | ||
| 3143 | xs_html *h = html_entry(user, obj, 0, 0, md5, 1); | 3144 | xs_html *h = html_entry(user, obj, 0, 0, md5, 1); |
| 3144 | 3145 | ||
| 3145 | if (h != NULL) { | 3146 | if (h != NULL) { |
| 3146 | xs_html_add(entry, | 3147 | xs_html_add(entry, |
| 3148 | xs_html_tag("p", | ||
| 3149 | xs_html_tag("a", | ||
| 3150 | xs_html_attr("href", ctxt), | ||
| 3151 | xs_html_text(L("Context")))), | ||
| 3147 | h); | 3152 | h); |
| 3148 | } | 3153 | } |
| 3149 | } | 3154 | } |
| @@ -3550,7 +3555,8 @@ int html_get_handler(const xs_dict *req, const char *q_path, | |||
| 3550 | const char *md5 = xs_list_get(l, -1); | 3555 | const char *md5 = xs_list_get(l, -1); |
| 3551 | 3556 | ||
| 3552 | if (md5 && *md5 && timeline_here(&snac, md5)) { | 3557 | if (md5 && *md5 && timeline_here(&snac, md5)) { |
| 3553 | xs *list = xs_list_append(xs_list_new(), md5); | 3558 | xs *list0 = xs_list_append(xs_list_new(), md5); |
| 3559 | xs *list = timeline_top_level(&snac, list0); | ||
| 3554 | 3560 | ||
| 3555 | *body = html_timeline(&snac, list, 0, 0, 0, 0, NULL, "/admin", 1, error); | 3561 | *body = html_timeline(&snac, list, 0, 0, 0, 0, NULL, "/admin", 1, error); |
| 3556 | *b_size = strlen(*body); | 3562 | *b_size = strlen(*body); |