diff options
| -rw-r--r-- | html.c | 2 | ||||
| -rw-r--r-- | mastoapi.c | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -1524,7 +1524,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 1524 | if ((read_only || !user) && !is_msg_public(msg)) | 1524 | if ((read_only || !user) && !is_msg_public(msg)) |
| 1525 | return NULL; | 1525 | return NULL; |
| 1526 | 1526 | ||
| 1527 | if (is_instance_blocked(id)) | 1527 | if (id && is_instance_blocked(id)) |
| 1528 | return NULL; | 1528 | return NULL; |
| 1529 | 1529 | ||
| 1530 | if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads"))) | 1530 | if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads"))) |
| @@ -1349,7 +1349,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn | |||
| 1349 | if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) | 1349 | if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) |
| 1350 | continue; | 1350 | continue; |
| 1351 | 1351 | ||
| 1352 | if (is_instance_blocked(id)) | 1352 | if (id && is_instance_blocked(id)) |
| 1353 | continue; | 1353 | continue; |
| 1354 | 1354 | ||
| 1355 | const char *from = NULL; | 1355 | const char *from = NULL; |