diff options
| author | 2024-03-12 18:04:09 +0100 | |
|---|---|---|
| committer | 2024-03-12 18:04:09 +0100 | |
| commit | cd0e211354575f89f169da2e86b5b234a2624b9d (patch) | |
| tree | bc681f26bd01436c1fdf06ca3cc74a941d234d37 /activitypub.c | |
| parent | Added actor refreshing via the user queue. (diff) | |
| download | snac2-cd0e211354575f89f169da2e86b5b234a2624b9d.tar.gz snac2-cd0e211354575f89f169da2e86b5b234a2624b9d.tar.xz snac2-cd0e211354575f89f169da2e86b5b234a2624b9d.zip | |
Don't call enqueue_actor_request() with a NULL user.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 08f79ed..bd72cb4 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -2256,6 +2256,8 @@ void process_user_queue_item(snac *snac, xs_dict *q_item) | |||
| 2256 | 2256 | ||
| 2257 | if (valid_status((status = activitypub_request(snac, actor, &actor_o)))) | 2257 | if (valid_status((status = activitypub_request(snac, actor, &actor_o)))) |
| 2258 | actor_add(actor, actor_o); | 2258 | actor_add(actor, actor_o); |
| 2259 | else | ||
| 2260 | object_touch(actor); | ||
| 2259 | 2261 | ||
| 2260 | snac_log(snac, xs_fmt("refresh actor %s %d", actor, status)); | 2262 | snac_log(snac, xs_fmt("refresh actor %s %d", actor, status)); |
| 2261 | } | 2263 | } |