summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-03-02 15:34:04 +0100
committerdefault <nobody@localhost>2023-03-02 15:34:04 +0100
commit8451d66601f2cf46630d9258c572245818d9a055 (patch)
treee2fbfd4733a8a6ed039a52b7fbba2e3e6d4b8c0e /activitypub.c
parent1ca94dab671f04f1a703508c6857bec2ccf08539 (diff)
Log the user-agent when serving the actor.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index a4969c1..11fddf4 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1362,7 +1362,9 @@ int activitypub_get_handler(d_char *req, char *q_path,
msg = msg_actor(&snac);
*ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"";
- snac_debug(&snac, 0, xs_fmt("serving actor"));
+ char *ua = xs_dict_get(req, "user-agent");
+
+ snac_debug(&snac, 0, xs_fmt("serving actor [%s]", ua ? ua : "No UA"));
}
else
if (strcmp(p_path, "outbox") == 0) {