commit 33e4103

default  ·  2024-02-28 14:20:21 +0000 UTC
parent 91207fb
mastoapi: check the url before checking.
1 files changed,  +1, -1
+1, -1
1@@ -649,7 +649,7 @@ xs_dict *mastoapi_account(const xs_dict *actor)
2 
3             char *url = xs_dict_get(metadata, name);
4 
5-            if (xs_startswith(url, "https:/" "/")) {
6+            if (!xs_is_null(url) && xs_startswith(url, "https:/" "/")) {
7                 xs_number *verified_time = xs_dict_get(val_links, url);
8                 if (xs_type(verified_time) == XSTYPE_NUMBER) {
9                     time_t t = xs_number_get(verified_time);