summaryrefslogtreecommitdiff
path: root/snac.h
diff options
context:
space:
mode:
Diffstat (limited to 'snac.h')
-rw-r--r--snac.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/snac.h b/snac.h
index bcff7f8..b6e1da1 100644
--- a/snac.h
+++ b/snac.h
@@ -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);
105xs_str *hash_password(const char *uid, const char *passwd, const char *nonce); 105xs_str *hash_password(const char *uid, const char *passwd, const char *nonce);
106int check_password(const char *uid, const char *passwd, const char *hash); 106int check_password(const char *uid, const char *passwd, const char *hash);
107 107
108int strip_media(const char *fn);
109int check_strip_tool(void);
110
108void srv_archive(const char *direction, const char *url, xs_dict *req, 111void 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
414xs_dict *emojis(void); 417xs_dict *emojis(void);
418xs_dict *emojis_rm_categories(void);
415xs_str *format_text_with_emoji(snac *user, const char *text, int ems, const char *proxy); 419xs_str *format_text_with_emoji(snac *user, const char *text, int ems, const char *proxy);
416xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag); 420xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag);
417xs_str *sanitize(const char *content); 421xs_str *sanitize(const char *content);
@@ -494,3 +498,5 @@ void rss_to_timeline(snac *user, const char *url);
494void rss_poll_hashtags(void); 498void rss_poll_hashtags(void);
495 499
496void data_fsck(void); 500void data_fsck(void);
501
502xs_list *user_top_ten(snac *user, int count);