mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Use the 'collapse_threads' field from user.json.
This commit is contained in:
parent
59142795e7
commit
a80ba1c538
1 changed files with 3 additions and 0 deletions
3
html.c
3
html.c
|
@ -1459,6 +1459,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
|
||||||
if ((read_only || !user) && !is_msg_public(msg))
|
if ((read_only || !user) && !is_msg_public(msg))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads")))
|
||||||
|
collapse_threads = 1;
|
||||||
|
|
||||||
/* hidden? do nothing more for this conversation */
|
/* hidden? do nothing more for this conversation */
|
||||||
if (user && is_hidden(user, id)) {
|
if (user && is_hidden(user, id)) {
|
||||||
xs *s1 = xs_fmt("%s_entry", md5);
|
xs *s1 = xs_fmt("%s_entry", md5);
|
||||||
|
|
Loading…
Reference in a new issue