mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-12-26 01:03:37 +00:00
mastoapi: check the url before checking.
This commit is contained in:
parent
91207fbe39
commit
33e410301b
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ xs_dict *mastoapi_account(const xs_dict *actor)
|
|||
|
||||
char *url = xs_dict_get(metadata, name);
|
||||
|
||||
if (xs_startswith(url, "https:/" "/")) {
|
||||
if (!xs_is_null(url) && xs_startswith(url, "https:/" "/")) {
|
||||
xs_number *verified_time = xs_dict_get(val_links, url);
|
||||
if (xs_type(verified_time) == XSTYPE_NUMBER) {
|
||||
time_t t = xs_number_get(verified_time);
|
||||
|
|
Loading…
Reference in a new issue