diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -2531,6 +2531,22 @@ xs_str *html_notifications(snac *user, int skip, int show) | |||
| 2531 | xs_html_attr("class", "snac-post"), | 2531 | xs_html_attr("class", "snac-post"), |
| 2532 | html_actor_icon(user, actor, NULL, NULL, NULL, 0, 0))); | 2532 | html_actor_icon(user, actor, NULL, NULL, NULL, 0, 0))); |
| 2533 | } | 2533 | } |
| 2534 | else | ||
| 2535 | if (strcmp(type, "Move") == 0) { | ||
| 2536 | const xs_dict *o_msg = xs_dict_get(noti, "msg"); | ||
| 2537 | const char *target; | ||
| 2538 | |||
| 2539 | if (xs_type(o_msg) == XSTYPE_DICT && (target = xs_dict_get(o_msg, "target"))) { | ||
| 2540 | xs *old_actor = NULL; | ||
| 2541 | |||
| 2542 | if (valid_status(actor_get(target, &old_actor))) { | ||
| 2543 | xs_html_add(entry, | ||
| 2544 | xs_html_tag("div", | ||
| 2545 | xs_html_attr("class", "snac-post"), | ||
| 2546 | html_actor_icon(user, old_actor, NULL, NULL, NULL, 0, 0))); | ||
| 2547 | } | ||
| 2548 | } | ||
| 2549 | } | ||
| 2534 | else { | 2550 | else { |
| 2535 | xs *md5 = xs_md5_hex(id, strlen(id)); | 2551 | xs *md5 = xs_md5_hex(id, strlen(id)); |
| 2536 | 2552 | ||