commit aa3e351
default
·
2024-07-01 06:59:32 +0000 UTC
parent 6f772e4
Minor tweak.
3 files changed,
+4,
-2
+1,
-1
1@@ -935,7 +935,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
2 enqueue_ntfy(body, ntfy_server, ntfy_token);
3
4 /* auto boost */
5- if (xs_match(type, "Create") && xs_type(xs_dict_get(snac->config, "auto_boost")) == XSTYPE_TRUE) {
6+ if (xs_match(type, "Create") && xs_is_true(xs_dict_get(snac->config, "auto_boost"))) {
7 xs *msg = msg_admiration(snac, objid, "Announce");
8 enqueue_message(snac, msg);
9
M
xs.h
+2,
-0
1@@ -149,6 +149,8 @@ unsigned int xs_hash_func(const char *data, int size);
2
3 #define xs_return(v) xs_val *__r = v; v = NULL; return __r
4
5+#define xs_is_true(v) (xs_type((v)) == XSTYPE_TRUE)
6+#define xs_is_false(v) (xs_type((v)) == XSTYPE_FALSE)
7
8 #ifdef XS_IMPLEMENTATION
9
+1,
-1
1@@ -1 +1 @@
2-/* eb935660a9616c92b262b1a92f64f50932b77565 2024-06-20T17:31:26+02:00 */
3+/* 3896c5f782089f0dca68455565bbcd65dd724c91 2024-07-01T08:55:34+02:00 */