summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index d8e01e8..80d6662 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -803,6 +803,10 @@ xs_dict *msg_actor(snac *snac)
803 keys = xs_dict_append(keys, "publicKeyPem", xs_dict_get(snac->key, "public")); 803 keys = xs_dict_append(keys, "publicKeyPem", xs_dict_get(snac->key, "public"));
804 msg = xs_dict_set(msg, "publicKey", keys); 804 msg = xs_dict_set(msg, "publicKey", keys);
805 805
806 /* if the "bot" config field is set to true, change type to "Service" */
807 if (xs_type(xs_dict_get(snac->config, "bot")) == XSTYPE_TRUE)
808 msg = xs_dict_set(msg, "type", "Service");
809
806 return msg; 810 return msg;
807} 811}
808 812