mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Don't call enqueue_actor_refresh() with a NULL user.
This commit is contained in:
parent
b9dbc5bcf3
commit
262302a3af
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ int actor_request(snac *user, const char *actor, xs_dict **data)
|
||||||
|
|
||||||
if (status == 205) {
|
if (status == 205) {
|
||||||
/* stale actor: use it, but request a refresh */
|
/* 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);
|
enqueue_actor_refresh(user, actor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue