mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
timeline_request() also triggers an actor_request().
This commit is contained in:
parent
2c00c7b0b5
commit
37925a020e
1 changed files with 9 additions and 2 deletions
|
@ -66,9 +66,11 @@ int actor_request(snac *snac, char *actor, d_char **data)
|
||||||
/* renew data */
|
/* renew data */
|
||||||
status = actor_add(snac, actor, payload);
|
status = actor_add(snac, actor, payload);
|
||||||
|
|
||||||
|
if (data != NULL) {
|
||||||
*data = payload;
|
*data = payload;
|
||||||
payload = NULL;
|
payload = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -88,6 +90,11 @@ int timeline_request(snac *snac, char *id, char *referrer)
|
||||||
status = activitypub_request(snac, id, &object);
|
status = activitypub_request(snac, id, &object);
|
||||||
|
|
||||||
if (valid_status(status)) {
|
if (valid_status(status)) {
|
||||||
|
char *actor = xs_dict_get(object, "actor");
|
||||||
|
|
||||||
|
/* request (and drop) the actor for this entry */
|
||||||
|
actor_request(snac, actor, NULL);
|
||||||
|
|
||||||
/* does it have an ancestor? */
|
/* does it have an ancestor? */
|
||||||
char *in_reply_to = xs_dict_get(object, "inReplyTo");
|
char *in_reply_to = xs_dict_get(object, "inReplyTo");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue