diff options
| author | 2024-02-05 10:18:38 +0100 | |
|---|---|---|
| committer | 2024-02-05 10:18:38 +0100 | |
| commit | 729ad476f081e0ea63f90263ce5959b9889356f9 (patch) | |
| tree | 8e9e7e4949b587493aecebc4538d2d6a8979d1d8 /html.c | |
| parent | Don't serve a cached admin page if it's older than the server start time. (diff) | |
| download | snac2-729ad476f081e0ea63f90263ce5959b9889356f9.tar.gz snac2-729ad476f081e0ea63f90263ce5959b9889356f9.tar.xz snac2-729ad476f081e0ea63f90263ce5959b9889356f9.zip | |
notify_list() no longer has a new_only argument.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -673,8 +673,7 @@ static xs_html *html_user_body(snac *user, int local) | |||
| 673 | xs_html_text(L("private")))); | 673 | xs_html_text(L("private")))); |
| 674 | } | 674 | } |
| 675 | else { | 675 | else { |
| 676 | xs *n_list = notify_list(user, 1); | 676 | int n_len = notify_new_num(user); |
| 677 | int n_len = xs_list_len(n_list); | ||
| 678 | xs_html *notify_count = NULL; | 677 | xs_html *notify_count = NULL; |
| 679 | 678 | ||
| 680 | /* show the number of new notifications, if there are any */ | 679 | /* show the number of new notifications, if there are any */ |
| @@ -2138,7 +2137,7 @@ xs_str *html_people(snac *user) | |||
| 2138 | 2137 | ||
| 2139 | xs_str *html_notifications(snac *user) | 2138 | xs_str *html_notifications(snac *user) |
| 2140 | { | 2139 | { |
| 2141 | xs *n_list = notify_list(user, 0); | 2140 | xs *n_list = notify_list(user); |
| 2142 | xs *n_time = notify_check_time(user, 0); | 2141 | xs *n_time = notify_check_time(user, 0); |
| 2143 | 2142 | ||
| 2144 | xs_html *body = html_user_body(user, 0); | 2143 | xs_html *body = html_user_body(user, 0); |