diff options
| author | default <nobody@localhost> | 2024-12-15 15:47:27 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-12-15 15:47:27 +0100 |
| commit | e8ae4920f6758c064bccba63f0a74d09ab57b751 (patch) | |
| tree | c4053e6917f736a70d51a553dbec189b777cc27f /mastoapi.c | |
| parent | b2d301de2d5956b17ee0e26201bca952c4269e27 (diff) | |
Fixed crash in mastoapi_status() Emoji list.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -990,7 +990,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) const char *o_url = xs_dict_get(icon, "url"); if (!xs_is_null(o_url)) { - xs *url = make_url(o_url, snac->actor, 1); + xs *url = make_url(o_url, snac ? snac->actor : NULL, 1); xs *nm = xs_strip_chars_i(xs_dup(name), ":"); d1 = xs_dict_append(d1, "shortcode", nm); @@ -1322,7 +1322,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn const char *max_id = xs_dict_get(args, "max_id"); const char *since_id = xs_dict_get(args, "since_id"); -// const char *min_id = xs_dict_get(args, "min_id"); /* unsupported old-to-new navigation */ + const char *min_id = xs_dict_get(args, "min_id"); /* unsupported old-to-new navigation */ const char *limit_s = xs_dict_get(args, "limit"); int limit = 0; int cnt = 0; @@ -1333,7 +1333,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn if (limit == 0) limit = 20; - if (index_desc_first(f, md5, 0)) { + if (min_id == NULL && index_desc_first(f, md5, 0)) { do { xs *msg = NULL; |