mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Avoid invalid actors in mastoapi_status().
This commit is contained in:
parent
4f7a13884e
commit
adf5623044
1 changed files with 4 additions and 0 deletions
|
@ -706,6 +706,10 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
|
|||
const char *type = xs_dict_get(msg, "type");
|
||||
const char *id = xs_dict_get(msg, "id");
|
||||
|
||||
/* fail if it's not a valid actor */
|
||||
if (xs_is_null(type) || xs_is_null(id))
|
||||
return NULL;
|
||||
|
||||
xs *acct = mastoapi_account(actor);
|
||||
|
||||
xs *idx = NULL;
|
||||
|
|
Loading…
Reference in a new issue