summaryrefslogtreecommitdiff
path: root/webfinger.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-10 19:16:05 +0100
committerdefault <nobody@localhost>2024-01-10 19:16:05 +0100
commit7f6a79314634fa089718ec0f99e4231295e03d5b (patch)
tree20c134b6c225e853986ec47f8f8d656b29afc0bb /webfinger.c
parentf0d185192ba4c64646ac9c1507798707af03c898 (diff)
Fixed minor collision in webfinger caching.
Diffstat (limited to 'webfinger.c')
-rw-r--r--webfinger.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/webfinger.c b/webfinger.c
index 2184097..3f28b81 100644
--- a/webfinger.c
+++ b/webfinger.c
@@ -48,8 +48,10 @@ int webfinger_request_signed(snac *snac, const char *qs, char **actor, char **us
xs *obj = NULL;
+ xs *cached_qs = xs_fmt("webfinger:%s", qs);
+
/* is it cached? */
- if (valid_status(status = object_get(qs, &obj))) {
+ if (valid_status(status = object_get(cached_qs, &obj))) {
/* nothing more to do */
}
else
@@ -77,7 +79,7 @@ int webfinger_request_signed(snac *snac, const char *qs, char **actor, char **us
if (obj == NULL && valid_status(status) && payload) {
obj = xs_json_loads(payload);
- object_add(qs, obj);
+ object_add(cached_qs, obj);
}
if (obj) {