diff options
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 10 |
1 files changed, 7 insertions, 3 deletions
| @@ -1,7 +1,7 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #define VERSION "2.69" | 4 | #define VERSION "2.72" |
| 5 | 5 | ||
| 6 | #define USER_AGENT "snac/" VERSION | 6 | #define USER_AGENT "snac/" VERSION |
| 7 | 7 | ||
| @@ -22,6 +22,8 @@ | |||
| 22 | 22 | ||
| 23 | #define MD5_HEX_SIZE 33 | 23 | #define MD5_HEX_SIZE 33 |
| 24 | 24 | ||
| 25 | #define MD5_ALREADY_SEEN_MARK "00000000000000000000000000000000" | ||
| 26 | |||
| 25 | extern double disk_layout; | 27 | extern double disk_layout; |
| 26 | extern xs_str *srv_basedir; | 28 | extern xs_str *srv_basedir; |
| 27 | extern xs_dict *srv_config; | 29 | extern xs_dict *srv_config; |
| @@ -157,12 +159,14 @@ int timeline_here(snac *snac, const char *md5); | |||
| 157 | int timeline_get_by_md5(snac *snac, const char *md5, xs_dict **msg); | 159 | int timeline_get_by_md5(snac *snac, const char *md5, xs_dict **msg); |
| 158 | int timeline_del(snac *snac, const char *id); | 160 | int timeline_del(snac *snac, const char *id); |
| 159 | xs_str *user_index_fn(snac *user, const char *idx_name); | 161 | xs_str *user_index_fn(snac *user, const char *idx_name); |
| 160 | xs_list *timeline_simple_list(snac *user, const char *idx_name, int skip, int show); | 162 | xs_list *timeline_simple_list(snac *user, const char *idx_name, int skip, int show, int *more); |
| 161 | xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show); | 163 | xs_list *timeline_list(snac *snac, const char *idx_name, int skip, int show, int *more); |
| 162 | int timeline_add(snac *snac, const char *id, const xs_dict *o_msg); | 164 | int timeline_add(snac *snac, const char *id, const xs_dict *o_msg); |
| 163 | int timeline_admire(snac *snac, const char *id, const char *admirer, int like); | 165 | int timeline_admire(snac *snac, const char *id, const char *admirer, int like); |
| 164 | 166 | ||
| 165 | xs_list *timeline_top_level(snac *snac, const xs_list *list); | 167 | xs_list *timeline_top_level(snac *snac, const xs_list *list); |
| 168 | void timeline_add_mark(snac *user); | ||
| 169 | |||
| 166 | xs_list *local_list(snac *snac, int max); | 170 | xs_list *local_list(snac *snac, int max); |
| 167 | xs_str *instance_index_fn(void); | 171 | xs_str *instance_index_fn(void); |
| 168 | xs_list *timeline_instance_list(int skip, int show); | 172 | xs_list *timeline_instance_list(int skip, int show); |