diff options
| author | 2025-04-17 22:01:21 +0200 | |
|---|---|---|
| committer | 2025-04-17 22:01:21 +0200 | |
| commit | ac8b03f9e96d5778b3c0ddfea94b54e17963a3d4 (patch) | |
| tree | b650f683bd6cea37e4d88ae247411f4f9edb2a32 /snac.h | |
| parent | Merge tag '2.74' into curl-smtp (diff) | |
| parent | Version 2.75 RELEASED. (diff) | |
| download | penes-snac2-ac8b03f9e96d5778b3c0ddfea94b54e17963a3d4.tar.gz penes-snac2-ac8b03f9e96d5778b3c0ddfea94b54e17963a3d4.tar.xz penes-snac2-ac8b03f9e96d5778b3c0ddfea94b54e17963a3d4.zip | |
Merge tag '2.75' into curl-smtp
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 9 |
1 files changed, 8 insertions, 1 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.74" | 4 | #define VERSION "2.75" |
| 5 | 5 | ||
| 6 | #define USER_AGENT "snac/" VERSION | 6 | #define USER_AGENT "snac/" VERSION |
| 7 | 7 | ||
| @@ -61,6 +61,7 @@ typedef struct { | |||
| 61 | xs_str *actor; /* actor url */ | 61 | xs_str *actor; /* actor url */ |
| 62 | xs_str *md5; /* actor url md5 */ | 62 | xs_str *md5; /* actor url md5 */ |
| 63 | const xs_dict *lang;/* string translation dict */ | 63 | const xs_dict *lang;/* string translation dict */ |
| 64 | const char *tz; /* configured timezone */ | ||
| 64 | } snac; | 65 | } snac; |
| 65 | 66 | ||
| 66 | typedef struct { | 67 | typedef struct { |
| @@ -205,6 +206,12 @@ void draft_del(snac *user, const char *id); | |||
| 205 | void draft_add(snac *user, const char *id, const xs_dict *msg); | 206 | void draft_add(snac *user, const char *id, const xs_dict *msg); |
| 206 | xs_list *draft_list(snac *user); | 207 | xs_list *draft_list(snac *user); |
| 207 | 208 | ||
| 209 | int is_scheduled(snac *user, const char *id); | ||
| 210 | void schedule_del(snac *user, const char *id); | ||
| 211 | void schedule_add(snac *user, const char *id, const xs_dict *msg); | ||
| 212 | xs_list *scheduled_list(snac *user); | ||
| 213 | void scheduled_process(snac *user); | ||
| 214 | |||
| 208 | int limited(snac *user, const char *id, int cmd); | 215 | int limited(snac *user, const char *id, int cmd); |
| 209 | #define is_limited(user, id) limited((user), (id), 0) | 216 | #define is_limited(user, id) limited((user), (id), 0) |
| 210 | #define limit(user, id) limited((user), (id), 1) | 217 | #define limit(user, id) limited((user), (id), 1) |