diff options
| author | 2024-07-01 08:59:32 +0200 | |
|---|---|---|
| committer | 2024-07-01 08:59:32 +0200 | |
| commit | aa3e351951751adbfaf87ed1bdb63767221dd214 (patch) | |
| tree | b6fcdd7702d6158c1eede277e1b208e82d3cf6f4 | |
| parent | Fixed a minor bug in processing Markdown-style links having anchors. (diff) | |
| download | snac2-aa3e351951751adbfaf87ed1bdb63767221dd214.tar.gz snac2-aa3e351951751adbfaf87ed1bdb63767221dd214.tar.xz snac2-aa3e351951751adbfaf87ed1bdb63767221dd214.zip | |
Minor tweak.
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | xs.h | 2 | ||||
| -rw-r--r-- | xs_version.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 5b75506..63bdab9 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -935,7 +935,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, | |||
| 935 | enqueue_ntfy(body, ntfy_server, ntfy_token); | 935 | enqueue_ntfy(body, ntfy_server, ntfy_token); |
| 936 | 936 | ||
| 937 | /* auto boost */ | 937 | /* auto boost */ |
| 938 | if (xs_match(type, "Create") && xs_type(xs_dict_get(snac->config, "auto_boost")) == XSTYPE_TRUE) { | 938 | if (xs_match(type, "Create") && xs_is_true(xs_dict_get(snac->config, "auto_boost"))) { |
| 939 | xs *msg = msg_admiration(snac, objid, "Announce"); | 939 | xs *msg = msg_admiration(snac, objid, "Announce"); |
| 940 | enqueue_message(snac, msg); | 940 | enqueue_message(snac, msg); |
| 941 | 941 | ||
| @@ -149,6 +149,8 @@ unsigned int xs_hash_func(const char *data, int size); | |||
| 149 | 149 | ||
| 150 | #define xs_return(v) xs_val *__r = v; v = NULL; return __r | 150 | #define xs_return(v) xs_val *__r = v; v = NULL; return __r |
| 151 | 151 | ||
| 152 | #define xs_is_true(v) (xs_type((v)) == XSTYPE_TRUE) | ||
| 153 | #define xs_is_false(v) (xs_type((v)) == XSTYPE_FALSE) | ||
| 152 | 154 | ||
| 153 | #ifdef XS_IMPLEMENTATION | 155 | #ifdef XS_IMPLEMENTATION |
| 154 | 156 | ||
diff --git a/xs_version.h b/xs_version.h index 5304f4a..1f05b57 100644 --- a/xs_version.h +++ b/xs_version.h | |||
| @@ -1 +1 @@ | |||
| /* eb935660a9616c92b262b1a92f64f50932b77565 2024-06-20T17:31:26+02:00 */ | /* 3896c5f782089f0dca68455565bbcd65dd724c91 2024-07-01T08:55:34+02:00 */ | ||