summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-03-02 12:30:00 +0100
committerdefault <nobody@localhost>2023-03-02 12:30:00 +0100
commite705e5c3edafe34f1a05f23e97780d4f8acd219f (patch)
tree79a55dae38d0037cab03f83b759876ebbe6c9d41 /activitypub.c
parent4773d6c64cdee56c9c2b4061ef9587bd3c342b7b (diff)
Show a bigger piece of a connection error.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 455a6fe..ee31ecd 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1210,9 +1210,9 @@ void process_queue_item(xs_dict *q_item)
status = send_to_inbox_raw(keyid, seckey, inbox, msg, &payload, &p_size, retries == 0 ? 3 : 8);
if (payload) {
- if (p_size > 24) {
+ if (p_size > 64) {
/* trim the message */
- payload[24] = '\0';
+ payload[64] = '\0';
payload = xs_str_cat(payload, "...");
}
@@ -1361,7 +1361,7 @@ 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, 1, xs_fmt("serving actor"));
+ snac_debug(&snac, 0, xs_fmt("serving actor"));
}
else
if (strcmp(p_path, "outbox") == 0) {