mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Don't hide replies to polls (that are not votes).
This commit is contained in:
parent
ca2e0fcd89
commit
60fc87d845
1 changed files with 5 additions and 1 deletions
6
html.c
6
html.c
|
@ -769,6 +769,10 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
|
||||||
return os;
|
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 */
|
/* bring the main actor */
|
||||||
if ((actor = xs_dict_get(msg, "attributedTo")) == NULL)
|
if ((actor = xs_dict_get(msg, "attributedTo")) == NULL)
|
||||||
return os;
|
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);
|
s = html_entry_controls(snac, s, msg, md5);
|
||||||
|
|
||||||
/** children **/
|
/** children **/
|
||||||
if (!hide_children && strcmp(type, "Question") != 0) {
|
if (!hide_children) {
|
||||||
xs *children = object_children(id);
|
xs *children = object_children(id);
|
||||||
int left = xs_list_len(children);
|
int left = xs_list_len(children);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue