commit 0d81734
default
·
2023-06-04 08:48:03 +0000 UTC
parent 3a8005f
If a user config field 'bot' is set to true, identies as such.
2 files changed,
+5,
-1
M
snac.h
+4,
-0
1@@ -803,6 +803,10 @@ xs_dict *msg_actor(snac *snac)
2 keys = xs_dict_append(keys, "publicKeyPem", xs_dict_get(snac->key, "public"));
3 msg = xs_dict_set(msg, "publicKey", keys);
4
5+ /* if the "bot" config field is set to true, change type to "Service" */
6+ if (xs_type(xs_dict_get(snac->config, "bot")) == XSTYPE_TRUE)
7+ msg = xs_dict_set(msg, "type", "Service");
8+
9 return msg;
10 }
11
M
snac.h
+1,
-1
1@@ -1,7 +1,7 @@
2 /* snac - A simple, minimalistic ActivityPub instance */
3 /* copyright (c) 2022 - 2023 grunfink / MIT license */
4
5-#define VERSION "2.34"
6+#define VERSION "2.35-dev"
7
8 #define USER_AGENT "snac/" VERSION
9