diff options
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 10 |
1 files changed, 8 insertions, 2 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 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #define VERSION "2.86-dev" | 4 | #define VERSION "2.88" |
| 5 | 5 | ||
| 6 | #define USER_AGENT "snac/" VERSION | 6 | #define USER_AGENT "snac/" VERSION |
| 7 | 7 | ||
| @@ -105,6 +105,9 @@ int validate_uid(const char *uid); | |||
| 105 | xs_str *hash_password(const char *uid, const char *passwd, const char *nonce); | 105 | xs_str *hash_password(const char *uid, const char *passwd, const char *nonce); |
| 106 | int check_password(const char *uid, const char *passwd, const char *hash); | 106 | int check_password(const char *uid, const char *passwd, const char *hash); |
| 107 | 107 | ||
| 108 | int strip_media(const char *fn); | ||
| 109 | int check_strip_tool(void); | ||
| 110 | |||
| 108 | void srv_archive(const char *direction, const char *url, xs_dict *req, | 111 | void srv_archive(const char *direction, const char *url, xs_dict *req, |
| 109 | const char *payload, int p_size, | 112 | const char *payload, int p_size, |
| 110 | int status, xs_dict *headers, | 113 | int status, xs_dict *headers, |
| @@ -412,6 +415,7 @@ int activitypub_post_handler(const xs_dict *req, const char *q_path, | |||
| 412 | char **body, int *b_size, char **ctype); | 415 | char **body, int *b_size, char **ctype); |
| 413 | 416 | ||
| 414 | xs_dict *emojis(void); | 417 | xs_dict *emojis(void); |
| 418 | xs_dict *emojis_rm_categories(void); | ||
| 415 | xs_str *format_text_with_emoji(snac *user, const char *text, int ems, const char *proxy); | 419 | xs_str *format_text_with_emoji(snac *user, const char *text, int ems, const char *proxy); |
| 416 | xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag); | 420 | xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag); |
| 417 | xs_str *sanitize(const char *content); | 421 | xs_str *sanitize(const char *content); |
| @@ -494,3 +498,5 @@ void rss_to_timeline(snac *user, const char *url); | |||
| 494 | void rss_poll_hashtags(void); | 498 | void rss_poll_hashtags(void); |
| 495 | 499 | ||
| 496 | void data_fsck(void); | 500 | void data_fsck(void); |
| 501 | |||
| 502 | xs_list *user_top_ten(snac *user, int count); | ||