summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-31 06:14:14 +0200
committerdefault <nobody@localhost>2023-05-31 06:14:14 +0200
commit60fc87d845c45b605f3c6a81990d2e99a61fd8ae (patch)
tree3234f7212303ba64c7a59571018e0917d30f5d59 /html.c
parentca2e0fcd89599819b0a808aff5a8125df26c36d5 (diff)
Don't hide replies to polls (that are not votes).
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 8854d0c..2cbcc4c 100644
--- a/html.c
+++ b/html.c
@@ -769,6 +769,10 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
return os;
}
+ /* ignore notes with "name", as they are votes to Questions */
+ if (strcmp(type, "Note") == 0 && !xs_is_null(xs_dict_get(msg, "name")))
+ return os;
+
/* bring the main actor */
if ((actor = xs_dict_get(msg, "attributedTo")) == NULL)
return os;
@@ -1061,7 +1065,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
s = html_entry_controls(snac, s, msg, md5);
/** children **/
- if (!hide_children && strcmp(type, "Question") != 0) {
+ if (!hide_children) {
xs *children = object_children(id);
int left = xs_list_len(children);