summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-02-28 15:20:21 +0100
committerGravatar default2024-02-28 15:20:21 +0100
commit33e410301b3b183bb7d1598e8f735a291b185240 (patch)
treef8fa0e0f5cd4d429a2e66312071267e6720ad599
parentmastoapi: fixed a bug in validated links. (diff)
downloadsnac2-33e410301b3b183bb7d1598e8f735a291b185240.tar.gz
snac2-33e410301b3b183bb7d1598e8f735a291b185240.tar.xz
snac2-33e410301b3b183bb7d1598e8f735a291b185240.zip
mastoapi: check the url before checking.
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index fd89341..ae4d3ee 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -649,7 +649,7 @@ xs_dict *mastoapi_account(const xs_dict *actor)
649 649
650 char *url = xs_dict_get(metadata, name); 650 char *url = xs_dict_get(metadata, name);
651 651
652 if (xs_startswith(url, "https:/" "/")) { 652 if (!xs_is_null(url) && xs_startswith(url, "https:/" "/")) {
653 xs_number *verified_time = xs_dict_get(val_links, url); 653 xs_number *verified_time = xs_dict_get(val_links, url);
654 if (xs_type(verified_time) == XSTYPE_NUMBER) { 654 if (xs_type(verified_time) == XSTYPE_NUMBER) {
655 time_t t = xs_number_get(verified_time); 655 time_t t = xs_number_get(verified_time);