diff options
author | default <nobody@localhost> | 2024-03-12 20:07:01 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-03-12 20:07:01 +0100 |
commit | 262302a3afed4f6fe31734621951f34541c83e1a (patch) | |
tree | 1e1b8151c436f08753ce0d67f3f80cf52df9a438 /activitypub.c | |
parent | b9dbc5bcf3e8c233ba8eec71e4c037de0a655d02 (diff) |
Don't call enqueue_actor_refresh() with a NULL user.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 28b2427..e72a982 100644 --- a/activitypub.c +++ b/activitypub.c @@ -129,7 +129,7 @@ int actor_request(snac *user, const char *actor, xs_dict **data) if (status == 205) { /* stale actor: use it, but request a refresh */ - if (!xs_startswith(actor, srv_baseurl)) + if (user && !xs_startswith(actor, srv_baseurl)) enqueue_actor_refresh(user, actor); } else |