diff options
| author | 2023-08-14 11:48:05 +0200 | |
|---|---|---|
| committer | 2023-08-14 11:48:05 +0200 | |
| commit | ab41e651d07eff7a5091d9900c3adc87929a02f2 (patch) | |
| tree | fbedad7ecda1a3c66a13c2bbf9e39f8fd75d032d | |
| parent | Updated documentation. (diff) | |
| download | snac2-ab41e651d07eff7a5091d9900c3adc87929a02f2.tar.gz snac2-ab41e651d07eff7a5091d9900c3adc87929a02f2.tar.xz snac2-ab41e651d07eff7a5091d9900c3adc87929a02f2.zip | |
Don't show children in the instance timeline.
| -rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -937,7 +937,7 @@ xs_str *html_entry(snac *user, xs_str *os, const xs_dict *msg, int local, | |||
| 937 | xs *boosts = NULL; | 937 | xs *boosts = NULL; |
| 938 | 938 | ||
| 939 | /* do not show non-public messages in the public timeline */ | 939 | /* do not show non-public messages in the public timeline */ |
| 940 | if (local && !is_msg_public(msg)) | 940 | if ((local || !user) && !is_msg_public(msg)) |
| 941 | return os; | 941 | return os; |
| 942 | 942 | ||
| 943 | /* hidden? do nothing more for this conversation */ | 943 | /* hidden? do nothing more for this conversation */ |
| @@ -1484,7 +1484,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int local, int skip, int | |||
| 1484 | if (!valid_status(status)) | 1484 | if (!valid_status(status)) |
| 1485 | continue; | 1485 | continue; |
| 1486 | 1486 | ||
| 1487 | s = html_entry(user, s, msg, local, 0, v, 0); | 1487 | s = html_entry(user, s, msg, local, 0, v, user ? 0 : 1); |
| 1488 | } | 1488 | } |
| 1489 | 1489 | ||
| 1490 | s = xs_str_cat(s, "</div>\n"); | 1490 | s = xs_str_cat(s, "</div>\n"); |