summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/html.c b/html.c
index 425df4b..ce7f511 100644
--- a/html.c
+++ b/html.c
@@ -1437,7 +1437,7 @@ xs_str *html_notifications(snac *snac)
1437 "<form autocomplete=\"off\" " 1437 "<form autocomplete=\"off\" "
1438 "method=\"post\" action=\"%s/admin/clear-notifications\" id=\"clear\">\n" 1438 "method=\"post\" action=\"%s/admin/clear-notifications\" id=\"clear\">\n"
1439 "<input type=\"submit\" class=\"snac-btn-like\" value=\"%s\">\n" 1439 "<input type=\"submit\" class=\"snac-btn-like\" value=\"%s\">\n"
1440 "</form><p>", snac->actor, L("Clear all")); 1440 "</form><p>\n", snac->actor, L("Clear all"));
1441 s = xs_str_cat(s, s1); 1441 s = xs_str_cat(s, s1);
1442 1442
1443 while (xs_list_iter(&p, &v)) { 1443 while (xs_list_iter(&p, &v)) {
@@ -1498,13 +1498,16 @@ xs_str *html_notifications(snac *snac)
1498 else 1498 else
1499 if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0) 1499 if (strcmp(type, "Update") == 0 && strcmp(utype, "Question") == 0)
1500 label = L("Finished poll"); 1500 label = L("Finished poll");
1501 else
1502 if (strcmp(type, "Undo") == 0 && strcmp(utype, "Follow") == 0)
1503 label = L("Unfollow");
1501 1504
1502 xs *s1 = xs_fmt("<div class=\"snac-post-with-desc\">\n" 1505 xs *s1 = xs_fmt("<div class=\"snac-post-with-desc\">\n"
1503 "<p><b>%s by <a href=\"%s\">%s</a></b>:</p>\n", 1506 "<p><b>%s by <a href=\"%s\">%s</a></b>:</p>\n",
1504 label, actor_id, a_name); 1507 label, actor_id, a_name);
1505 s = xs_str_cat(s, s1); 1508 s = xs_str_cat(s, s1);
1506 1509
1507 if (strcmp(type, "Follow") == 0) { 1510 if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0) {
1508 s = xs_str_cat(s, "<div class=\"snac-post\">\n"); 1511 s = xs_str_cat(s, "<div class=\"snac-post\">\n");
1509 1512
1510 s = html_msg_icon(snac, s, obj); 1513 s = html_msg_icon(snac, s, obj);