diff options
| author | 2023-03-02 12:30:00 +0100 | |
|---|---|---|
| committer | 2023-03-02 12:30:00 +0100 | |
| commit | e705e5c3edafe34f1a05f23e97780d4f8acd219f (patch) | |
| tree | 79a55dae38d0037cab03f83b759876ebbe6c9d41 | |
| parent | Output to the shared inboxes only the public messages. (diff) | |
| download | snac2-e705e5c3edafe34f1a05f23e97780d4f8acd219f.tar.gz snac2-e705e5c3edafe34f1a05f23e97780d4f8acd219f.tar.xz snac2-e705e5c3edafe34f1a05f23e97780d4f8acd219f.zip | |
Show a bigger piece of a connection error.
| -rw-r--r-- | activitypub.c | 6 |
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) | |||
| 1210 | status = send_to_inbox_raw(keyid, seckey, inbox, msg, &payload, &p_size, retries == 0 ? 3 : 8); | 1210 | status = send_to_inbox_raw(keyid, seckey, inbox, msg, &payload, &p_size, retries == 0 ? 3 : 8); |
| 1211 | 1211 | ||
| 1212 | if (payload) { | 1212 | if (payload) { |
| 1213 | if (p_size > 24) { | 1213 | if (p_size > 64) { |
| 1214 | /* trim the message */ | 1214 | /* trim the message */ |
| 1215 | payload[24] = '\0'; | 1215 | payload[64] = '\0'; |
| 1216 | payload = xs_str_cat(payload, "..."); | 1216 | payload = xs_str_cat(payload, "..."); |
| 1217 | } | 1217 | } |
| 1218 | 1218 | ||
| @@ -1361,7 +1361,7 @@ int activitypub_get_handler(d_char *req, char *q_path, | |||
| 1361 | msg = msg_actor(&snac); | 1361 | msg = msg_actor(&snac); |
| 1362 | *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""; | 1362 | *ctype = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""; |
| 1363 | 1363 | ||
| 1364 | snac_debug(&snac, 1, xs_fmt("serving actor")); | 1364 | snac_debug(&snac, 0, xs_fmt("serving actor")); |
| 1365 | } | 1365 | } |
| 1366 | else | 1366 | else |
| 1367 | if (strcmp(p_path, "outbox") == 0) { | 1367 | if (strcmp(p_path, "outbox") == 0) { |