summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-13 06:30:24 +0100
committerdefault <nobody@localhost>2024-03-13 06:30:24 +0100
commitb2e384146716286ad451be1097e1eece44d466b2 (patch)
treefa10a6133b5859a3579e63d899d764b8d8ccc13c /activitypub.c
parent262302a3afed4f6fe31734621951f34541c83e1a (diff)
Call actor_get_refresh() from actor_request().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/activitypub.c b/activitypub.c
index e72a982..fae0c15 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -125,14 +125,8 @@ int actor_request(snac *user, const char *actor, xs_dict **data)
*data = NULL;
/* get from disk first */
- status = actor_get(actor, data);
+ status = actor_get_refresh(user, actor, data);
- if (status == 205) {
- /* stale actor: use it, but request a refresh */
- if (user && !xs_startswith(actor, srv_baseurl))
- enqueue_actor_refresh(user, actor);
- }
- else
if (!valid_status(status)) {
/* actor data non-existent: get from the net */
status = activitypub_request(user, actor, &payload);