summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c
index f5f57ae..dfe14b0 100644
--- a/html.c
+++ b/html.c
@@ -899,10 +899,10 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
899 int closed = 0; 899 int closed = 0;
900 900
901 if (xs_dict_get(msg, "closed")) 901 if (xs_dict_get(msg, "closed"))
902 closed = 1; 902 closed = 2;
903 else 903 else
904 if (xs_startswith(id, snac->actor)) 904 if (xs_startswith(id, snac->actor))
905 closed = 1; /* we questioned? closed for us */ 905 closed = 1; /* we questioned; closed for us */
906 else { 906 else {
907 /* not yet closed? check if we already voted for this */ 907 /* not yet closed? check if we already voted for this */
908 xs *children = object_children(id); 908 xs *children = object_children(id);
@@ -914,7 +914,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
914 const char *atto = xs_dict_get(msg, "attributedTo"); 914 const char *atto = xs_dict_get(msg, "attributedTo");
915 915
916 if (atto && strcmp(atto, snac->actor) == 0) 916 if (atto && strcmp(atto, snac->actor) == 0)
917 closed = 1; /* closed for us */ 917 closed = 1; /* we already voted; closed for us */
918 } 918 }
919 } 919 }
920 } 920 }
@@ -941,7 +941,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
941 c = xs_str_cat(c, "</table>\n"); 941 c = xs_str_cat(c, "</table>\n");
942 942
943 /* if it's *really* closed, say it */ 943 /* if it's *really* closed, say it */
944 if (!xs_is_null(xs_dict_get(msg, "closed"))) { 944 if (closed == 2) {
945 xs *s1 = xs_fmt("<p>%s</p>\n", L("Closed")); 945 xs *s1 = xs_fmt("<p>%s</p>\n", L("Closed"));
946 c = xs_str_cat(c, s1); 946 c = xs_str_cat(c, s1);
947 } 947 }