diff options
author | default <nobody@localhost> | 2023-12-11 10:41:41 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-12-11 10:41:41 +0100 |
commit | bfdaf380eae4358b88d215a7bc1310fbd12b9e5e (patch) | |
tree | 51824940b3cefbe343e637cbce5fa216d207e96e /activitypub.c | |
parent | c06b74cc8e7ab92002ceea9f30d2c8a334a9d1c2 (diff) |
More logging tweaks.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index 5afe304..9ec7c37 100644 --- a/activitypub.c +++ b/activitypub.c @@ -118,7 +118,7 @@ int activitypub_request(snac *user, const char *url, xs_dict **data) int actor_request(const char *actor, xs_dict **data) /* request an actor */ { - int status, status2; + int status; xs *payload = NULL; if (data) @@ -129,9 +129,9 @@ int actor_request(const char *actor, xs_dict **data) if (status != 200) { /* actor data non-existent or stale: get from the net */ - status2 = activitypub_request(NULL, actor, &payload); + status = activitypub_request(NULL, actor, &payload); - if (valid_status(status2)) { + if (valid_status(status)) { /* renew data */ status = actor_add(actor, payload); @@ -141,7 +141,7 @@ int actor_request(const char *actor, xs_dict **data) } } else - srv_debug(0, xs_fmt("actor_request error %d", status2)); + srv_debug(0, xs_fmt("actor_request error %s %d", actor, status)); } /* collect the (presumed) shared inbox in this actor */ |